28.08.2010, 22:14
Quote:
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 |
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?