SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 01/01/2010, 07:51 PM   #1
Mujib
Huge Clucker
 
Join Date: Jan 2009
Location: Amsterdam
Posts: 270
Reputation: 35
Default Number of arguments does not match definition [Warning 202]

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 (c) 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. }
Mujib is offline  
Old 01/01/2010, 08:42 PM   #2
MerLow
Big Clucker
 
Join Date: Jul 2008
Posts: 64
Reputation: 0
Default Re: Number of arguments does not match definition [Warning 202]

pawn Code:
public CheckNPCStatus(playerid, vehicleid)
{
    if(IsPlayerNPC(playerid) && IsPlayerInAnyVehicle(playerid))
    {
        VehicleFuel[vehicleid] = 100.0000;
        RepairVehicle(GetPlayerVehicleID(playerid));
    }
    return 1;
}
MerLow is offline  
Old 02/01/2010, 01:49 PM   #3
Mujib
Huge Clucker
 
Join Date: Jan 2009
Location: Amsterdam
Posts: 270
Reputation: 35
Default Re: Number of arguments does not match definition [Warning 202]

Wut, i forgot 'Any'
Mujib is offline  
Old 02/01/2010, 02:55 PM   #4
MerLow
Big Clucker
 
Join Date: Jul 2008
Posts: 64
Reputation: 0
Default Re: Number of arguments does not match definition [Warning 202]

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
warning 202: number of arguments does not match definition gijs_min Help Archive 9 01/07/2011 03:05 PM
warning 202: number of arguments does not match definition elvago Help Archive 9 18/06/2009 12:30 AM
warning 202: number of arguments does not match definition Agent Smith Help Archive 2 12/06/2009 01:56 PM


All times are GMT. The time now is 11:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.