05.01.2015, 22:30
Hello there, i got here a badge command but i get the following error : error 029: invalid expression, assumed zero, if you could help me i would appreciate it .
pawn Код:
CMD:badge(playerid, params[]) {
if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
{
PlayerInfo[playerid][pDuty] = 0;
SetPlayerToTeamColor(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You have taken off your badge , you are now off-duty");
}
else
{
PlayerInfo[playerid][pDuty] = 1;
SetPlayerToTeamColor(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You have shown your badge, you are now on-duty");
}
}
return 1;
}