Problem
#3

Does this even compile? Your statements are completely wrong.

pawn Код:
if(GetPlayerTeam(playerid) == TEAM_GROVE)
But it might be better to use a switch instead.

pawn Код:
switch(GetPlayerTeam(playerid))
{
    case TEAM_GROVE: {}
    case TEAM_BALLAS: {}
    // etc.
}
Sidenote: Try not to repeat code. The message is going to be sent regardless of which team they're actually in, making the statement it itself redundant.
Reply


Messages In This Thread
Problem - by Youssef214 - 25.01.2014, 19:16
Re: Problem - by Scottas - 25.01.2014, 19:22
Re: Problem - by Vince - 25.01.2014, 19:22
Re: Problem - by Youssef214 - 25.01.2014, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)