SA-MP Forums Archive
Bicycles problem. Variables - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bicycles problem. Variables (/showthread.php?tid=406624)



Bicycles problem. Variables - CrossOv3r - 11.01.2013

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



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);
}
... 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