CMD:makeadmin(playerid,params) { if(!IsPlayerAnAdmin(playerid,6))return SendClientMessage(playerid,COL_RED,"<!>You are not authorized to use this command!"); new adminlvl,rank,pmsg[128],adminmsg[128],string [128],pname,pID; if(sscanf(params,"ui",pname,adminlvl))return SendClientMessage(playerid,COL_GREEN,"USAGE:/makeadmin [ID] [LEVEL]"); if(rank<0||rank>6)return SendClientMessage(playerid,COL_GREEN,"Please write an acceptable level."); format(pmsg,sizeof(pmsg),"You have been promoted to level %i by Adminstrator %s",adminlvl,PlayerName(playerid)); format(adminmsg,sizeof(adminmsg),"You have promoted %s to level %i",pname,adminlvl); SetPVarInt(pID,"Admin",rank); for(new i=0;i<GetMaxPlayers();i++) { if(IsPlayerConnected(i)) { if(IsPlayerAnAdmin(i,1)) { format(string,sizeof(string),"A: %s [LEVEL %i] used the MAKEADMIN command.",PlayerName(playerid),GetPVarInt(playerid,"Admin")); SendClientMessage(i,COL_LIGHTBLUE,string); } } } SendClientMessage(playerid,COL_LIGHTBLUE,adminmsg); SendClientMessage(pID,COL_LIGHTBLUE,pmsg); return 1; }
public OnPlayerConnect(playerid)
{
SendClientMessage("test", "test", "test");
return 1;
}
This error means your putting an invalid input in a function, try to compile this to understand
pawn Код:
if you put something else, for example a string instead of an integer it'll give you this error since you didn't show a specific line I guess some of your colors aren't correctly defined |
#define COL_WHITE "{FFFFFF}" #define COL_RED "{F81414}" #define COL_GREEN "{00FF22}" #define COL_LIGHTBLUE "{00CED1}"
#define COL_LIGHTBLUE 0x00CED1FF