get vehicle id
#1

hey. is there a "if" statement like this:

if(getvehicleNameOrId == 411)

or something like that so it can check if player is in vehicle 411?

i want to use in a command!
Reply
#2

pawn Код:
if(GetPlayerVehicleID(< 411)
i think it something like that but im just guessing
still it gives u an idea
Reply
#3

Quote:
Originally Posted by TheDiscussionCafe
Посмотреть сообщение
hey. is there a "if" statement like this:

if(getvehicleNameOrId == 411)

or something like that so it can check if player is in vehicle 411?
Yes, there is.

if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)

https://sampwiki.blast.hk/wiki/GetVehicleModel



Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
pawn Код:
if(GetPlayerVehicleID(< 411)
i think it something like that but im just guessing
still it gives u an idea
No, your statement is invalid, that wont work.
Reply
#4

Quote:
Originally Posted by [NWA]Hannes
Посмотреть сообщение
Yes, there is.

if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)

https://sampwiki.blast.hk/wiki/GetVehicleModel





No, your statement is invalid, that wont work.
works thanks!
Reply
#5

Quote:
Originally Posted by [NWA]Hannes
Посмотреть сообщение
Yes, there is.

if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)

https://sampwiki.blast.hk/wiki/GetVehicleModel





No, your statement is invalid, that wont work.
soz was just guessing im still learning -.-
Reply
#6

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
pawn Код:
if(GetPlayerVehicleID(< 411)
i think it something like that but im just guessing
still it gives u an idea
If you have no clue whatsoever what you're talking about (which you don't - you haven't even grasped how a basic statement works) then posting in someone's help topic is a bit stupid. Not only does it make you look like a fool but it's hardly helping the guy that created the topic.

Learn yourself, THEN teach people.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)