OnPlayerEnterVehicle
#2

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
For one thing you are missing some brackets/braces and need to indent your code better.

OnPlayerEnterVehicle(playerid) is a callback, called when an event happens in the SA:MP program, in this case it's when a player entered a vehicle.

I think it can be used in a statement [being the fact that it returns a value] but In this context I think it isn't needed. anyway I think that is just a mistake, if not, remove it.

Inside that statement is just a bunch of numbers, the computer doesn't know what to do with them does it?

Tell me what they are for, and I can help further :P
I have tried different ways to make my vehicles so only team members can enter and use them, but i have fail.
so i got an idea to put it in OnPlayerEnterVehicle that if you enter a vehicle witch belongs to a another team you will get removed from it, and i tried to do that with the vehicles coords. Leader and member of team 1 has the vehicle coords you see in the code, if a player in team 2 tries to enter these vehicles with these coords you get removed from the vehicle. And if i understand you right i have the code in total wrong place right?
Reply


Messages In This Thread
OnPlayerEnterVehicle - by cruising - 28.08.2010, 21:43
Re: OnPlayerEnterVehicle - by cruising - 28.08.2010, 22:14
Re: OnPlayerEnterVehicle - by cruising - 28.08.2010, 22:48
Re: OnPlayerEnterVehicle - by cruising - 28.08.2010, 23:57
Re: OnPlayerEnterVehicle - by cruising - 29.08.2010, 09:25
Re: OnPlayerEnterVehicle - by cruising - 29.08.2010, 09:41
Re: OnPlayerEnterVehicle - by cruising - 29.08.2010, 10:02
Re: OnPlayerEnterVehicle - by cruising - 29.08.2010, 10:35
Re: OnPlayerEnterVehicle - by cruising - 15.09.2010, 16:14
Re: OnPlayerEnterVehicle - by Mike_Peterson - 15.09.2010, 16:41

Forum Jump:


Users browsing this thread: 1 Guest(s)