I don't understand your code, at the begining are these supposed to be variables being assigned values?:
Quote:
Originally Posted by Zener25
plytype="G.I. Soldier DEF";
plygistyp="G.I. Soldier";
plyairtyp="Airborne";
plymartyp="Marine";
plycomtyp="Commando";
plysprtyp="Sniper";
plysabtyp="Saboteur";
plyarityp="Armoured Infantry";
plyobstyp="Observer";
plyfobtyp="Forward Observer";
plycchtyp="Crew Chief";
plycmetyp="Crew Medic";
plycmntyp="Crewman";
|
If so then why aren't the variables starting with a $ symbol? And in your script I don't understand something like this:
PHP Code:
if((spectype==specfamtyp)&&(exptype==expexptyp)) { plytype=plysabtyp; }
For example what is "spectype", is it a variable, string, what? If it's a variable it needs to start with a dollar sign and if it's a string it needs to be within single or double quotations.
As for there being any limits to using the IF statement, no there aren't any, what you should do is use it in this manner:
PHP Code:
if () { // something } elseif() { // something else } elseif() { // something else again } else() { // something else altogether }
Use as many elseifs as you want in there.
Last edited by Marik; 07-10-2010 at 09:03 AM..
|