[Help] Y_ini Error
#1

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
Reply
#2

That means you haven't put the right amount of arguments in a function. It'd really help if you showed the code.
Reply
#3

show use the code :
Reply
#4

PHP код:
CMD:kick(playerid,params[])
{
new 
id;
if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_WHITE "SERVER: Unknown Command");
if(
sscanf(params"d"id))return SendClientMessage(playerid"{FF0000}AdmUsage: {15FF00}/Kick <Playerid>");
else if(!
IsPlayerConnected(id))return SendClientMessage(playerid0xFF0000FF"Invalid Player ID");
else
{
    
Kick(id);
}
return 
1;

When i enter this code an other error occur :
error 035: argument type mismatch (argument 2)
Reply
#5

show the exac code where is the error!
Reply
#6

Your second "SendClientMessage" needs a colour as the second argument.
Reply
#7

nice nimrod i didnt see that
Reply
#8

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 .
Reply
#9

pawn Код:
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, 0xFF0000FF, "{FF0000}AdmUsage: {15FF00}/Kick <Playerid>");
else if(!IsPlayerConnected(id))return SendClientMessage(playerid, 0xFF0000FF, "Invalid Player ID");
else
{
    Kick(id);
}

return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)