SA-MP Forums Archive
Help Please - 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: Help Please (/showthread.php?tid=359227)



Help Please - rumen98 - 13.07.2012

Hey people tried to do a check command but it did nothing to try it on another player shows my stats I need for an RP I'm doing
PHP код:
CMD:check(playeridparams[])
{
    new 
gamer;
    new 
atext[128];
    new 
atext2[128];
    new 
nivo PlayerInfo[playerid][Hungry];
    new 
nivo2 PlayerInfo[gamer][Hungry];
    if(!
IsPlayerAdmin(playerid))
        return 
SendClientMessage(playeridCOLOR_RED"Достъп отказан.");
    if (
sscanf(params"u"gamer)) SendClientMessage(playeridCOLOR_RED"Използвай: \"/check <Играч>");
    else if (
gamer == INVALID_PLAYER_IDSendClientMessage(playeridCOLOR_RED"Играча на е намерен");
    else
    {
        
format (atextsizeof(atext), "Hungry on player:%d",nivo);
        
format (atext2sizeof(atext2), "Hungry on player:%d",nivo2);
        
SendClientMessage(playeridCOLOR_PURPLEatext2);
        
SendClientMessage(playeridCOLOR_PURPLEatext);
    }
    return 
1;