GetPlayerVehicleID errors
#1

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

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.
Reply
#3

So if i did

Код:
new vecid = GetPlayerVehicleID(playerid);
{
if(PlayerInfo[playerid][pCKey] == vecid)
{
....
Would that work?
Reply
#4

yes.
Reply
#5

Thanks man, but I guess I should thank myself for kind of thinking of it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)