Putting a return value into a variable?
#1

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
Reply
#2

pawn Код:
new myVehicles[ 5 ];

myVehicles[ 0 ] = CreateVehicle(,,,,,,);
myVehicles[ 1 ] = CreateVehicle(,,,,,,);
myVehicles[ 2 ] = CreateVehicle(,,,,,,);
myVehicles[ 3 ] = CreateVehicle(,,,,,,);
myVehicles[ 4 ] = CreateVehicle(,,,,,,);
like that?
Reply
#3

Doh right o.O, gonna try it soon thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)