28.03.2020, 23:53
Hello!
I wanna make if
is == 1
then when i use command /stats
Exemple: PlayerInfo[playerid][pJob] = 1 ; that job is fisherman
and in /stats at Job: %s to show 'Fisherman' not '1'.
I wanna make if
PHP Code:
PlayerInfo[playerid][pJob]
then when i use command /stats
PHP Code:
CMD:stats(playerid)
{
new string[258],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Numele: %s | Bani in mana: %i | Admin Level: %i | Job: %s",name, GetPlayerMoney(playerid), PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pJob]);
SendClientMessage(playerid,-1,string);
return 1;
}
and in /stats at Job: %s to show 'Fisherman' not '1'.