Help Please
#1

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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)