SA-MP Forums Archive
warning 202: number of arguments does not match definition [PLEASE HELP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 202: number of arguments does not match definition [PLEASE HELP] (/showthread.php?tid=444763)



warning 202: number of arguments does not match definition [PLEASE HELP] - chubz - 18.06.2013

Hey Guys I Keep Getting these Warning on these lines Thanks for the help

warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition

{
if(PlayerInfo[playerid][Skin] != GetPlayerSkin(playerid))
PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
{
}
if(PlayerInfo[playerid][Armour] != GetPlayerArmour(playerid))
PlayerInfo[playerid][Armour] = GetPlayerArmour(playerid);
{
}
if(PlayerInfo[playerid][Angle] != GetPlayerFacingAngle(playerid))
PlayerInfo[playerid][Angle] = GetPlayerFacingAngle(playerid);
{
}
if(PlayerInfo[playerid][Interior] != GetPlayerInterior(playerid))
PlayerInfo[playerid][Interior] = GetPlayerInterior(playerid);
{
}
if(PlayerInfo[playerid][VirtualWorld] != GetPlayerVirtualWorld(playerid))
PlayerInfo[playerid][VirtualWorld] = GetPlayerVirtualWorld(playerid);
}


Re: warning 202: number of arguments does not match definition [PLEASE HELP] - Chris10 - 18.06.2013

Maybe try

if(PlayerInfo[playerid][Skin] !== GetPlayerSkin(playerid))
PlayerInfo[playerid][Skin] == GetPlayerSkin(playerid);
and so on..

just add double '='


Re: warning 202: number of arguments does not match definition [PLEASE HELP] - legodude - 18.06.2013

some of these functions need a variable passed to them, where they store their values in. you can search the functions on the wiki, youll see how they are made up there.


Re: warning 202: number of arguments does not match definition [PLEASE HELP] - chubz - 18.06.2013

Nah That Gve me errors what im trying to do is telling it that

PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);

so that on disconnect it recognises that

dini_IntSet(file, "Skin",PlayerInfo[playerid][Skin]);

is to get the players skin and save it in the file I hope that's not confusing