Slap command help
#3

Change the variable "GetName" in the above code to "GetNameVar" (error 219 means that the variable is already assigned a value... so you probably have "GetName" somewhere else above).

Then change
pawn Код:
new GetName[MAX_PLAYER_NAME]
to
pawn Код:
new GetNameVar[MAX_PLAYER_NAME];//Again, make sure to change all the "GetName" to "GetNameVar"
Agter that, properly indent your code using brackets (see bellow)... it's not very neat.
pawn Код:
if(Event1)
{
      ResultOutcome1
      return 1;
}
else if (Event2)
{
     ResultOutcome2
     return 1;
}
else
{
     ResultOutcome3
     return 1;
}
Reply


Messages In This Thread
Slap command help - by Vasu99 - 02.03.2014, 18:58
Re: Slap command help - by Brandon_More - 02.03.2014, 19:01
Re: Slap command help - by jakejohnsonusa - 02.03.2014, 19:05
Re: Slap command help - by Vasu99 - 02.03.2014, 19:10
Re: Slap command help - by jakejohnsonusa - 02.03.2014, 19:16
Re: Slap command help - by Vasu99 - 02.03.2014, 19:18
Re: Slap command help - by Konstantinos - 02.03.2014, 19:41
Re: Slap command help - by jakejohnsonusa - 02.03.2014, 19:42
Re: Slap command help - by Vasu99 - 02.03.2014, 19:42
AW: Slap command help - by ZaakWest - 02.03.2014, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)