/stats on hisself ?
#5

Try this,
Код:
new name1[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name1, sizeof(name1));
if(sscanf(params,"S()[24]",name1)) return SendClientMessage(playerid,red,"USAGE: /stats[playername/nombrejugador]");
Or if not working:
Код:
new name1[MAX_PLAYER_NAME+1];
if(sscanf(params,"S()[24]",name1)) return SendClientMessage(playerid,red,"USAGE: /stats[playername/nombrejugador]");
if(isnull(name1)) GetPlayerName(playerid, name1, sizeof(name1));
or maybe this (it doesn't always check for string, not recommended):
Код:
new name1[MAX_PLAYER_NAME+1];
if(sscanf(params,"S()[24]",name1)) GetPlayerName(playerid, name1, sizeof(name1));
Not tested yet, hope it helps.
Reply


Messages In This Thread
closed due to dispute of my gamemode. - by Rodri99 - 20.01.2016, 14:36
Re: /stats on hisself ? - by radiobizza - 20.01.2016, 14:43
Re: /stats on hisself ? - by Rodri99 - 20.01.2016, 14:44
Re: /stats on hisself ? - by radiobizza - 20.01.2016, 14:48
Re: /stats on hisself ? - by RoboN1X - 20.01.2016, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)