Quote:
Originally Posted by Murilo_sousa
pawn Код:
CMD:leveladmin(playerid) { if(PlayerInfo[playerid][zAdmin] == 0) { SendClientMessage(playerid, -1, "Voce nao й Admin); } else if(PlayerInfo[playerid][zAdmin] == 1) { SendClientMessage(playerid, -1, "Voce й Admin Level 1); } else if(PlayerInfo[playerid][zAdmin] == 2) { SendClientMessage(playerid, -1, "Voce й Admin Level 2); } else if(PlayerInfo[playerid][zAdmin] == 3) { SendClientMessage(playerid, -1, "Voce й Admin Level 3); } else if(PlayerInfo[playerid][zAdmin] == 4) { SendClientMessage(playerid, -1, "Voce й Admin Level 4); } else if(PlayerInfo[playerid][zAdmin] == 5) { SendClientMessage(playerid, -1, "Voce й Admin Level 5); } return 1; }
// Caso o PlayerInfo nao seja sua variavel troque pela sua ....
|
Vocк esqueceu de fechar as aspas.
Assim й muito mais fбcil :
pawn Код:
CMD:leveladmin(playerid)
{
new VBString[24];
format(VBString, 24, "Vocк й Admin level %d.", zAdmin[playerid]);
SendClientMessage(playerid, -1, VBString);
return true;
}