Number of arguments does not match definition [Warning 202]
#1

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

pawn Code:
public CheckNPCStatus(playerid, vehicleid)
{
    if(IsPlayerNPC(playerid) && IsPlayerInAnyVehicle(playerid))
    {
        VehicleFuel[vehicleid] = 100.0000;
        RepairVehicle(GetPlayerVehicleID(playerid));
    }
    return 1;
}
Reply
#3

Wut, i forgot 'Any'
Reply
#4

This problem happen because exists IsPlayerInAnyVehicle(playerid) and IsPlayerInVehicle(playerid,vehicleid), just this.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)