C:\Users\Shekhar\Downloads\Aryan\SAMP 0.3x Server\filterscripts\A2Admin.pwn(164) : error 035: argument type mismatch (argument 2) C:\Users\Shekhar\Downloads\Aryan\SAMP 0.3x Server\filterscripts\A2Admin.pwn(167) : error 035: argument type mismatch (argument 2) C:\Users\Shekhar\Downloads\Aryan\SAMP 0.3x Server\filterscripts\A2Admin.pwn(178) : error 035: argument type mismatch (argument 2)
CMD:setlevel(playerid,params[])
{
new id,level;
if(IsPlayerAdmin(playerid))
{
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid,COL_RED,"USAGE: /setlevel <Player ID> <Admin level>");//LINE 164. ERROR LINE
else
{
if(level > 7) return SendClientMessage(playerid, COL_RED, "USAGE: Choose a level betwen 0 and 7");//LINE 167. ERROR LINE
else
{
new INI:File = INI_Open(UserPath(id));
INI_WriteInt(File,"Admin",level);
INI_Close(File);
}
}
}
else
{
SendClientMessage(playerid,COL_RED,"You are not authorized to use this command");//LINE 178. ERROR LINE
}
return 1;
}
COL_RED i'm sure it's defined as "{FF0000}", replace COL_RED with 0xFF0000FF.
|