16.08.2011, 04:27
This does not support on Sscanf.
Try using strmp.
Try using strmp.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/surrender", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pTeam] ==0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
PlayerInfo[playerid][pSurrender] = 1;
}
else (PlayerInfo[playerid][pSurrender] ==1)
}
ClearAnimations(playerid);
PlayerInfo[playerid][pSurrender] = 0;
}
return 1;
}
return 0;
}