SSCANF issues 0.3D
#3

Fuck, Wrong one.

Sorry lol

here

pawn Код:
CMD:setadmin(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >=10)
    {
        new id,level,n[MAX_PLAYER_NAME],on[MAX_PLAYER_NAME],string[128],string2[128];
        if (unformat(params,"ud[128]",id,level)) return SendClientMessage(playerid,COLOR_RED,"Usage:/setadmin [ID] [Admin Level]");
        if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "System: Invalid ID");
        else
        {
            PlayerInfo[playerid][pAdmin] = level;
            GetPlayerName(playerid,n,sizeof(n));
            GetPlayerName(id,on,sizeof(on));
            format(string,sizeof(string),"Your Admin Level Has Been Set To %d By %s ",level,n);
            SendClientMessage(id,COLOR_ORANGE,string);
            format(string2, sizeof(string), "You have set %s Admin Level To %d",on,level);
            SendClientMessage(playerid,COLOR_ORANGE,string2);
            PlayerInfo[playerid][pAdmin] = level;
        }
    }
    return 1;
}
Reply


Messages In This Thread
SSCANF issues 0.3D - by Shockey HD - 19.12.2011, 05:59
Re: SSCANF issues 0.3D - by [MG]Dimi - 19.12.2011, 06:02
Re: SSCANF issues 0.3D - by Shockey HD - 19.12.2011, 06:02
Re: SSCANF issues 0.3D - by Calgon - 19.12.2011, 06:03
Re: SSCANF issues 0.3D - by Shockey HD - 19.12.2011, 06:05
Re: SSCANF issues 0.3D - by Calgon - 19.12.2011, 06:07
Re: SSCANF issues 0.3D - by [MG]Dimi - 19.12.2011, 06:08
Re: SSCANF issues 0.3D - by Shockey HD - 19.12.2011, 06:15

Forum Jump:


Users browsing this thread: 1 Guest(s)