Can someone sort this out please;3
#1

If I do this(logged as RCON)
pawn Код:
CMD:setgm(playerid, params[])
{
    if(playerVariables[playerid][pGamemaster] == 5 || IsPlayerAdmin(playerid))
    {
        new id, string[128], string2[128], level, szQuery[128];
        if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "|- [Error] /setgm [id] [level]");
       
        format(string, sizeof(string), "You have set {1B8AE4}%s(%d)"COLOR_GREEN" to level %d gamemaster.", GetName(id), playerid, level);
        SendClientMessage(id, COLOR_GREEN, string);
        format(string2, sizeof(string2), "You have been given level %d gamemaster by {1B8AE4}%s(%d)", GetName(id), level);
        SendClientMessage(playerid, COLOR_GREEN, string);
        format(szQuery, sizeof(szQuery), "UPDATE players SET Gamemaster = '%d' WHERE ID = %d", playerVariables[id][pGamemaster], playerVariables[id][pDBID]);

    }
    return 1;
}
All it says is "You have set *name*(id) to a level 0 gamemaster!" even if you do "/setgm 0 5"
and sends it to you(twice)
Reply


Messages In This Thread
Can someone sort this out please;3 - by Elysian` - 26.06.2012, 19:58
Re: Can someone sort this out please;3 - by [A]ndrei - 26.06.2012, 20:04
Re: Can someone sort this out please;3 - by Elysian` - 26.06.2012, 20:04
Re: Can someone sort this out please;3 - by ViniBorn - 26.06.2012, 20:05
Re: Can someone sort this out please;3 - by [A]ndrei - 26.06.2012, 20:07
Re: Can someone sort this out please;3 - by ReneG - 26.06.2012, 20:08
Re: Can someone sort this out please;3 - by Elysian` - 26.06.2012, 20:13
Re: Can someone sort this out please;3 - by iGetty - 26.06.2012, 20:17
Re: Can someone sort this out please;3 - by Elysian` - 26.06.2012, 20:20
Re: Can someone sort this out please;3 - by iGetty - 26.06.2012, 20:35

Forum Jump:


Users browsing this thread: 1 Guest(s)