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