problem with SetPlayerName function.
#1

PHP код:
            new name2[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
            
GetPlayerName(playeridname2sizeof(name2));
            
strmid(pInfo[playerid][Name], name2024);
            
format(stringsizeof(string), "%i_%s",pInfo[playerid][Respect], name2);
            
SetPlayerName(playeridstring); 


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.
Reply


Messages In This Thread
problem with SetPlayerName function. - by wallen - 07.02.2018, 18:57
Re: problem with SetPlayerName function. - by Eoussama - 07.02.2018, 21:31
Re: problem with SetPlayerName function. - by Mugala - 08.02.2018, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)