Andrewroo Posted June 12, 2015 Posted June 12, 2015 (edited) def Initialize() { $words = vector( "assistant", "Assnt", "captain", "Capt", "head of personnel", "HoP", "bartender", "Bar", "chef", "Chef", "botanist", "Hydro", "quartermaster", "QM", "cargo technician", "Cargo", "shaft miner", "Miner", "clown", "Clown", "mime", "Mime", "janitor", "Jan-r", "librarian", "Lib-n", "lawyer", "Law", "chaplain", "Chapl", "chief engineer", "CE", "station engineer", "Engi", "atmospheric technician", "Atmos", "chief medical officer", "CMO", "medical doctor", "MD", "chemist", "Chem", "geneticist", "G-tic", "virologist", "Viro", "research director", "RD", "scientist", "Sci", "roboticist", "Robo", "head of security", "HoS", "warden", "Ward", "detective", "D-tiv", "security officer", "Sec", "ai", "AI", "cyborg", "Borg", "personal ai", "pAI", ); $index = 1; while($index <= length($words)) { $key = at($words, $index); $val = at($words, $index+1); mem($key, $val); $index += 2; } } if(mem("initialized") != 1) { Initialize(); mem("initialized", 1); } $foo = ""; $joblow = lower($job); if(mem($joblow)) { $foo = mem($joblow); } else { $foo = substr($job, 1, 6); } if (!find($source, "Unknown") && $job != "No id" && !find($source, " (as ")) { $source = $source + " (" + $foo + ")"; } This is the code I found on another site ad I added it to the common server but it doesnt seem to work....it compiles and executes but nothing happens? Edited June 13, 2015 by Guest Quote
Andrewroo Posted June 13, 2015 Author Posted June 13, 2015 The problem with it is. When I add the code to the server and compile and execute with no errors it doesn't actually work..? Quote
Rusty Shackleford Posted June 13, 2015 Posted June 13, 2015 Probably because it isn't actually referencing anything. I think? rusty's only just starting to learn code pls no crucifixion Quote
mrimatool Posted June 13, 2015 Posted June 13, 2015 Have to say you're very vague. You need to find the right place for it and if you can't find it you need to specify what the code is supposed to do. Quote
Guest Posted June 13, 2015 Posted June 13, 2015 The script is supposed to check to see what job you have and then attach "(job name)" to the end of what you say. I'm busy with an update at the moment so I can't really check it over. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.