/Stats Naming Error
#2

Quote:
Originally Posted by Jigsaw123
Посмотреть сообщение
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");
and this in /stats:

Код:
	format(string, sizeof(string), "Faction: %d", faction);
	SendClientMessage(playerid, -1, string);
and when I do /stats in game, it says Faction: 70
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(stringsizeof(string), "Faction: %s"faction(playerid));
    
SendClientMessage(playerid, -1string); 
Reply


Messages In This Thread
/Stats Naming Error - by Jigsaw123 - 23.07.2015, 22:27
Re: /Stats Naming Error - by lulo356 - 23.07.2015, 22:46
Re: /Stats Naming Error - by trablon - 23.07.2015, 22:49
Re: /Stats Naming Error - by lulo356 - 23.07.2015, 23:24
Re: /Stats Naming Error - by trablon - 23.07.2015, 23:36

Forum Jump:


Users browsing this thread: 1 Guest(s)