11.01.2013, 01:23
Variable of a vehicle
Well, my problem is, that when u rent a bicycle, you can change it to another, i want that you just can drive the main bicycle that you rent.
Picture
As you can see, i am in another bicycle, isnt the same that i rent
![](http://i935.photobucket.com/albums/ad198/mysterygoth/sa-mp-103_zps7fe9f10e.png)
Another Explain
I wanna get an information for an a variable an use it in all the Gamemode.
Example
... this allow to use the variable car just in the public FUNCTION 1.
I wanna save that variable and use it in anothers publics, stocks, etc.
Thanks for help guys , and sorry for my bad english
Well, my problem is, that when u rent a bicycle, you can change it to another, i want that you just can drive the main bicycle that you rent.
Picture
As you can see, i am in another bicycle, isnt the same that i rent
![](http://i935.photobucket.com/albums/ad198/mysterygoth/sa-mp-103_zps7fe9f10e.png)
Another Explain
I wanna get an information for an a variable an use it in all the Gamemode.
Example
pawn Код:
public Function1(playerid)
{
new Car= GetPlayerVehicleID(playerid);
DestroyVehicle(Car);
}
I wanna save that variable and use it in anothers publics, stocks, etc.
Thanks for help guys , and sorry for my bad english