Quote:
Originally Posted by Joe_
This is out of my vehicle functions
pawn Code:
stock GetVehicleColor(vehicleid, &color1, &color2) { color1 = vData[vehicleid][Color1]; color2 = vData[vehicleid][Color2]; return 1; }
//then it's just
new var1, var2; GetVehicleColor(vehicle, var1, var2);
//Then the colors are stored into var1 and var2, to be used any way you like
if(var1 != 1) print("ftw");
(Uses an enum to store the arrays)
|
Yea, yea.. You cool. I wasn't think about that. Happy now?