Please check this code out for me please
#10

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
pawn Код:
CMD:setadmin(playerid,params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new id,level;
        if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid, COL_RED, "Usage: /setadmin [id] [level] ");
        if(level > 5) return SendClientMessage(playerid, COL_RED, "Usage: /setadmin id 1-5");
        new INI:File = INI_Open(UserPath(id));
        INI_WriteInt(File,"Admin",level);
        INI_Close(File);
    }
    else SendClientMessage(playerid, COL_RED, "That id is not connected");
    return 1;
}
Am done.... i ha that at first but i am getting error
Код:
C:\Users\score_000\Desktop\Server\gamemodes\Unoffical.pwn(331) : error 035: argument type mismatch (argument 2)
C:\Users\score_000\Desktop\Server\gamemodes\Unoffical.pwn(334) : error 035: argument type mismatch (argument 2)
C:\Users\score_000\Desktop\Server\gamemodes\Unoffical.pwn(345) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
am getting that error for all the lines that have sendclient message onto it
and i am sscanf if that helps
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)