26.05.2010, 12:22
This is out of my vehicle functions
(Uses an enum to store the arrays)
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");