07.02.2018, 18:57
PHP код:
new name2[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name2, sizeof(name2));
strmid(pInfo[playerid][Name], name2, 0, 24);
format(string, sizeof(string), "%i_%s",pInfo[playerid][Respect], name2);
SetPlayerName(playerid, string);
I only wanted to show 1 number 12314_ example. not 1231_123_125415_12312 etc...
And how to detect when someone like types /stats 2 instead saying "You viewing the stats of player 213124_Nickname, without these numbers? I put that on the onplayerupdate callbacj so it would update everytime he gets new respects.