SA-MP Forums Archive
[Help] 2 Warnings - 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: [Help] 2 Warnings (/showthread.php?tid=466291)



[Help] 2 Warnings - jose005 - 27.09.2013

1.-
Warning
Код:
warning 202: number of arguments does not match definition
Code
Код:
new vehicleid = GetPlayerFreeVehicleId(playerid);
__________________________________________________ __________________________________________________ ____


2.-
Warning
Код:
warning 202: number of arguments does not match definition
Code
Код:
new playervehicleid = GetPlayerFreeVehicleId(playerid);



Re: [Help] 2 Warnings - Voxel - 27.09.2013

isnt it
pawn Код:
GetPlayerFreeVehicleId(playerid,vehicleid);
not sure though


Respuesta: Re: [Help] 2 Warnings - jose005 - 27.09.2013

Quote:
Originally Posted by Voxel
Посмотреть сообщение
isnt it
pawn Код:
GetPlayerFreeVehicleId(playerid,vehicleid);
not sure though
No

FIXED, CODE:
Код:
GetPlayerFreeVehicleId();



Re: [Help] 2 Warnings - Accord - 27.09.2013

The correct function is 'GetPlayerVehicleID'. However, if you meant to use another one; Pleaes provide us the full creation of the function in order to fully figure your issue out but beforehand, try changing the code to:

PHP код:
new vehicleid GetPlayerVehicleID(playerid);