[Include] [INC] GetVehicleColor1 & GetVehicleColor2
#9

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?
Reply


Messages In This Thread
[INC] GetVehicleColor1 & GetVehicleColor2 - by Martin_M - 26.05.2010, 11:40
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by WackoX - 26.05.2010, 11:43
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by Martin_M - 26.05.2010, 11:46
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by WackoX - 26.05.2010, 11:47
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by Joe_ - 26.05.2010, 11:54
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by Martin_M - 26.05.2010, 12:01
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by [MWR]Blood - 26.05.2010, 12:08
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by Joe_ - 26.05.2010, 12:22
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by Martin_M - 26.05.2010, 12:26
Re: [INC] GetVehicleColor1 & GetVehicleColor2 - by dice7 - 26.05.2010, 12:26

Forum Jump:


Users browsing this thread: 2 Guest(s)