Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Recommended Posts

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);}

Share this post


Link to post
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);
    }
}

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×