Number of arguments does not match definition [Warning 202] - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Number of arguments does not match definition [Warning 202] (
/showthread.php?tid=117778)
Number of arguments does not match definition [Warning 202] -
Mujib - 01.01.2010
Hi there!
I am having a problem (No this isnt the end of the world
)
Have a look at the error
Code:
C:\location\location\location\location\location\location\location\gamemodes\prpg.pwn(12893) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
My Lines
pawn Code:
12891. public CheckNPCStatus(playerid, vehicleid)
12892. {
12893. if(IsPlayerNPC(playerid) && IsPlayerInVehicle(playerid))
12894. {
12895. VehicleFuel[vehicleid] = 100.0000;
12896. RepairVehicle(GetPlayerVehicleID(playerid));
12897. }
12898. return 1;
12899. }
Re: Number of arguments does not match definition [Warning 202] -
MerLow - 01.01.2010
pawn Code:
public CheckNPCStatus(playerid, vehicleid)
{
if(IsPlayerNPC(playerid) && IsPlayerInAnyVehicle(playerid))
{
VehicleFuel[vehicleid] = 100.0000;
RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}
Re: Number of arguments does not match definition [Warning 202] -
Mujib - 02.01.2010
Wut, i forgot 'Any'
Re: Number of arguments does not match definition [Warning 202] -
MerLow - 02.01.2010
This problem happen because exists IsPlayerInAnyVehicle(playerid) and IsPlayerInVehicle(playerid,vehicleid), just this.