23.07.2015, 22:46
Quote:
I done this and it gives no errors.. But It doesnt work IG.
Код:
if(PlayerInfo[playerid][pFaction] == 0) format(faction, sizeof(faction), "Fighter"); else if(PlayerInfo[playerid][pFaction] == 1) format(faction, sizeof(faction), "Manager"); else if(PlayerInfo[playerid][pFaction] == 2) format(faction, sizeof(faction), "Guard"); Код:
format(string, sizeof(string), "Faction: %d", faction); SendClientMessage(playerid, -1, string); or Faction: 77 (( I have a command so that when I do /manager it sets the faction to 1 (Manager) but in this case it still doesnt work. |
PHP код:
format(string, sizeof(string), "Faction: %s", faction(playerid));
SendClientMessage(playerid, -1, string);