Need help - sscanf
#4

Quote:
Originally Posted by Score
Посмотреть сообщение
Hello, how can i make so a player can use /stats to view their own stats, or someone else's stats by doing /stats [targetid]

EX: if he does /stats, this will show up:

PHP код:
SendClientMessageEx(playeridCOLOR_GREY"User Statistics for {665353}%s(%d) {AFAFAF}- Database ID: {665353}%d"GetName(playerid), playeridPlayerInfo[playerid][ID]); 
If he does /stats [targetid], something like this:

PHP код:
Target's stats here 
maybe this code can help you
PHP код:
new idstring[64];
if(
sscanf(params"u"id))
{
    
// FOR TARGET ID
    
return 1;
}
else
{
    
//FOR YOURSELF

Reply


Messages In This Thread
Need help - sscanf - by Score - 27.09.2018, 11:53
Re: Need help - sscanf - by m4karow - 27.09.2018, 11:56
Re: Need help - sscanf - by Score - 27.09.2018, 11:57
Re: Need help - sscanf - by AlfaSufaIndo - 27.09.2018, 12:10
Re: Need help - sscanf - by Score - 27.09.2018, 12:11
Re: Need help - sscanf - by AlfaSufaIndo - 27.09.2018, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)