stickguy5000 Posted March 22, 2010 The "else" script function won't compile, WTF!!! Help please. Here's the script{ if (CheckInventory("SuperShotgun")); TakeInventory("SuperShotgun",1); Print (s:"\cpOh shit bro thanks.\n\cpHere have this."); GiveInventory("PlasmaRifle",1); else Print (s:"\cpIf you see a \cmDouble Barrel shotty bring it here.\n\cpI'll give you something nice.") delay (37*6);} 0 Share this post Link to post
fraggle Posted March 23, 2010 stickguy5000 said:The "else" script function won't compile, WTF!!! Help please. else is not a function. Maybe something like this? { if (CheckInventory("SuperShotgun")) { TakeInventory("SuperShotgun",1); Print (s:"\cpOh shit bro thanks.\n\cpHere have this."); GiveInventory("PlasmaRifle",1); } else { Print (s:"\cpIf you see a \cmDouble Barrel shotty bring it here.\n\cpI'll give you something nice."); delay (37*6); } } 0 Share this post Link to post