Check if the given id is in the same car as yours. [UNSOLVED]
#1

The title speaks by itself.

I don't know how to use check it, it's for a kidnap command, the command I made bvy my self, but this is the last thing I need to complete it.

Can some1 say me how?
Reply
#2

Код:
if(GetPlayerVehicleID(playerid) == GetPlayerVehicleID(giveplayerid))
Reply
#3

Код:
C:\Documents and Settings\Convidado\Desktop\SA-MP\filterscripts\Empregos.pwn(460) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#4

Line in map? :P
Reply
#5

Quote:
Originally Posted by Jefff
Код:
if(GetPlayerVehicleID(playerid) == GetPlayerVehicleID(giveplayerid))
Maybe try something like this?
pawn Код:
new MyVehicle, OtherGuysVehicle;
MyVehicle = GetPlayerVehicleID(playerid);
OtherGuysVehicle = GetPlayerVehicleID(giveplayerid); //change giveplayerid to whatever u use
if(MyVehicle == OtherGuysVehicle)
{
    // do something
}
Might be the same thing, but worth a try.
Reply
#6

Quote:
Originally Posted by [B2K
Hustler ]
Quote:
Originally Posted by Jefff
Код:
if(GetPlayerVehicleID(playerid) == GetPlayerVehicleID(giveplayerid))
Maybe try something like this?
pawn Код:
new MyVehicle, OtherGuysVehicle;
MyVehicle = GetPlayerVehicleID(playerid);
OtherGuysVehicle = GetPlayerVehicleID(giveplayerid); //change giveplayerid to whatever u use
if(MyVehicle == OtherGuysVehicle)
{
    // do something
}
Might be the same thing, but worth a try.
It does exactly the same as Jeff's does...
Reply
#7

Just thought it might dodge the tag mismatch warning.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)