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);
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. |
format(string, sizeof(string), "Faction: %s", faction(playerid));
SendClientMessage(playerid, -1, string);
new str[32],string[128];
if(PlayerInfo[playerid][pFaction] == 0) { str = "Fighter"; }
format(string,sizeof(string),"Faction Name: %s",str);
SendClientMessage(playerid,-1,string);
...
etc
...
format(string,sizeof(string),"Faction ID: [%d]",PlayerInfo[playerid][pFaction]);
stock Adminhelpplay(playerid)
{
new AdminHelpstats[32];
if(pInfo[playerid][AdminHelp] == 0) format(AdminHelpstats, sizeof(AdminHelpstats), "Player");
else if(pInfo[playerid][AdminHelp] == 1) format(AdminHelpstats, sizeof(AdminHelpstats),"Helper");
else if(pInfo[playerid][AdminHelp] == 2) format(AdminHelpstats, sizeof(AdminHelpstats), "Moderator");
else if(pInfo[playerid][AdminHelp] == 3) format(AdminHelpstats, sizeof(AdminHelpstats), "Administrator");
else if(pInfo[playerid][AdminHelp] == 4) format(AdminHelpstats, sizeof(AdminHelpstats), "Trusted Player");
return AdminHelpstats;
}
new string[128], playerb;
format(string, sizeof(string), " Stats of %s (%s)", Lname(playerb), Adminhelpplay(playerid));
SendClientMessage(playerid, COLOR_ORANGE, string);