Posts: 366
Threads: 113
Joined: Feb 2014
Hello , an error occur suddenly and now i am facing more and more errors its Y_ini.inc error . When i compile my gamemode it gives me the following error :
warning 202: number of arguments does not match definition
Posts: 33
Threads: 4
Joined: Dec 2014
Reputation:
0
That means you haven't put the right amount of arguments in a function. It'd really help if you showed the code.
Posts: 366
Threads: 113
Joined: Feb 2014
PHP код:
CMD:kick(playerid,params[])
{
new id;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE , "SERVER: Unknown Command");
if(sscanf(params, "d", id))return SendClientMessage(playerid, "{FF0000}AdmUsage: {15FF00}/Kick <Playerid>");
else if(!IsPlayerConnected(id))return SendClientMessage(playerid, 0xFF0000FF, "Invalid Player ID");
else
{
Kick(id);
}
return 1;
}
When i enter this code an other error occur :
error 035: argument type mismatch (argument 2)
Posts: 802
Threads: 41
Joined: Oct 2014
Reputation:
0
show the exac code where is the error!
Posts: 33
Threads: 4
Joined: Dec 2014
Reputation:
0
Your second "SendClientMessage" needs a colour as the second argument.
Posts: 366
Threads: 113
Joined: Feb 2014
UltraScripter , I don't know when the Y_ini error appeared but when i enter the kick command code it gives me another error which i told you
error 035: argument type mismatch (argument 2)
and if i remove that then only warning appear
warning 202: number of arguments does not match definition
Nimrood , Please correct the code and give me i don't know how to do it .