SA-MP Forums Archive
commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: commands (/showthread.php?tid=416264)



commands - blackdragon1 - 16.02.2013

player can only see his stats i want player can see all player s stats id 0 bug some one fix it?

PHP код:
CMD:stats(playeridparams[])
{
    new 
targetidstring[256], string2[256], string3[256];
    if(
sscanf(params"u"targetid))
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playeridRED"Player is not connected!");
    { 



Re: commands - bensmart469 - 16.02.2013

PHP код:
CMD:stats(playeridparams[])
{
    new 
targetidstring[256], string2[256], string3[256];
    if(
sscanf(params"u"targetid)) return SendClientMessage(playerid0xFFFFFFFF"USAGE: /stats [playerid]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playeridRED"Player is not connected!");
    { 
This is what i managed to do with the code that was specified, tell me if anything goes wrong.


Re: commands - blackdragon1 - 16.02.2013

lol so this is same. it means it will be work same too? any one reply?


Re: commands - PaulDinam - 16.02.2013

it's not the freaking same, open your eyes.
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /stats [playerid]");


Re: commands - blackdragon1 - 16.02.2013

i dont think it iwll be changed for this "return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /stats [playerid]");" let me check if yes so sory and thanks.!