Command not working
#1

pawn Код:
if(strcmp(cmdtext, "/makehelper", true) == 0)
{
    if(PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pHelpers] >= 3)
    {
        new targetid, level;
        if(sscanf(cmdtext,"ui", targetid, level)) return SendClientMessage(playerid, COLOR_GREY, "[USAGE] /makehelper [id] [level]");
        format(string, sizeof(string), "You have made (%d) %s a Helper, current level: %d", targetid, PlayerName(targetid), level);
        SendClientMessage(playerid, COLOR_WHITE, string);
        format(string, sizeof(string), "You were made a Helper by admin/head Helper (%d)%s", playerid, PlayerName(playerid));
        SendClientMessage(targetid, COLOR_WHITE, string);
        PlayerInfo[targetid][pHelpers] = level;
    }
    printf("/makehlper command returned");
    return 1;
}
This command isnt reaching the return point, is there some srt of problem?
Reply


Messages In This Thread
Command not working - by Riddy - 06.08.2012, 17:40
Re: Command not working - by Elysian` - 06.08.2012, 17:45
Re: Command not working - by Riddy - 06.08.2012, 17:55
Re: Command not working - by Ranama - 06.08.2012, 18:16
Re: Command not working - by Riddy - 06.08.2012, 18:22
Re: Command not working - by Riddy - 06.08.2012, 18:32
Re: Command not working - by SA-MPDrifter - 06.08.2012, 19:32
Re: Command not working - by Riddy - 07.08.2012, 00:53
Respuesta: Re: Command not working - by HarlemSAMP - 07.08.2012, 01:26
Re: Respuesta: Re: Command not working - by Riddy - 07.08.2012, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)