GetPlayerVehicleID errors - 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: GetPlayerVehicleID errors (
/showthread.php?tid=93244)
GetPlayerVehicleID errors -
Antonio [G-RP] - 24.08.2009
I have this code...
pawn Код:
if(!GetPlayerVehicleID(playerid, PlayerInfo[playerid][pCKey]);
Errors:
Код:
C:\Users\Lachlan\Desktop\Hosting Server\pawno\SW-RP.pwn(8434) : warning 202: number of arguments does not match definition
C:\Users\Lachlan\Desktop\Hosting Server\pawno\SW-RP.pwn(8434) : error 001: expected token: ")", but found ";"
C:\Users\Lachlan\Desktop\Hosting Server\pawno\SW-RP.pwn(8434) : error 036: empty statement
Please help, thanks in advance.
Re: GetPlayerVehicleID errors -
StrickenKid - 24.08.2009
GetPlayerVehicleID is used to get the players vehicle id... its used only with playerid,
Код:
GetPlayerVehicleID(playerid);
and it will return the id of the vehicle id they're in.
Re: GetPlayerVehicleID errors -
Antonio [G-RP] - 24.08.2009
So if i did
Код:
new vecid = GetPlayerVehicleID(playerid);
{
if(PlayerInfo[playerid][pCKey] == vecid)
{
....
Would that work?
Re: GetPlayerVehicleID errors -
StrickenKid - 24.08.2009
yes.
Re: GetPlayerVehicleID errors -
Antonio [G-RP] - 24.08.2009
Thanks man, but I guess I should thank myself for kind of thinking of it.