Putting a return value into a variable? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Putting a return value into a variable? (
/showthread.php?tid=179584)
Putting a return value into a variable? -
oliverrud - 27.09.2010
I'm wondering how to place this return value into a variable:
CreateVehicle(,,,,,,); would return a value however I got no idea how to perform so the return value will be saved in the variable i got by the name of vehicleid
Re: Putting a return value into a variable? -
Slice - 27.09.2010
pawn Код:
new myVehicles[ 5 ];
myVehicles[ 0 ] = CreateVehicle(,,,,,,);
myVehicles[ 1 ] = CreateVehicle(,,,,,,);
myVehicles[ 2 ] = CreateVehicle(,,,,,,);
myVehicles[ 3 ] = CreateVehicle(,,,,,,);
myVehicles[ 4 ] = CreateVehicle(,,,,,,);
like that?
Re: Putting a return value into a variable? -
oliverrud - 27.09.2010
Doh right o.O, gonna try it soon thanks