Car Health[Problem]
#3

Quote:
Originally Posted by antonio112
Посмотреть сообщение
First of all, what's up with these functions:
pawn Код:
!IsModelABoat(newcar)
If I'm not wrong, you're trying to see if a given vehicle model is a boat, correct? Then why do you get the ID of the vehicle? ID has nothing to do with model. So, let me give you an example:
pawn Код:
new newcar = GetVehicleModel(GetPlayerVehicleID(i))

// Now, what this function will do? Will get the model of the vehicle driven by the "i".
And now you'll be able to check if the model is a boat, bike or whatever.
IsModelABoat can be a custom callback, and if this is the case then it is not needed to define this again.
Reply


Messages In This Thread
Car Health[Problem] - by Dan_Barocu - 27.04.2012, 11:48
Re: Car Health[Problem] - by antonio112 - 27.04.2012, 12:18
Re: Car Health[Problem] - by milanosie - 27.04.2012, 12:21
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 12:45
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 12:47
Re: Car Health[Problem] - by zbt - 27.04.2012, 13:50
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 14:15
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 14:44
Re: Car Health[Problem] - by zbt - 27.04.2012, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)