Quote:
Originally Posted by Calon
Quote:
Originally Posted by » RэРиR «
At the top
OnGameModeInit
Код:
Vehicle[0] = AddStaticVehicle(..);
OnPlayerEnterVehicle
Код:
if(vehicleid == Vehicle[0]) SetPlayerPos(x,y,z);
|
No offense, but that's a kinda bad idea. Use just "new intname;" not new "intname[1];".
|
Depends if he wants to add more vehicles later, then an array variable is pretty useful.