Help using enums
#4

try this code. no enum needed.

pawn Код:
stock SetVehParams(vehicleid, param, bool:status)
{
    if(param < 0 || param > 6)return -1;
    new vp[7];
    GetVehicleParamsEx(vehicleid, vp[0], vp[1], vp[2], vp[3], vp[4], vp[5], vp[6]);
    vp[param] = status;
    return SetVehicleParamsEx(vehicleid, vp[0], vp[1], vp[2], vp[3], vp[4], vp[5], vp[6]);
}
didn't test, but i guess it work fine.
Reply


Messages In This Thread
Help using enums - by [L3th4l] - 27.02.2011, 04:52
Re: Help using enums - by Antonio [G-RP] - 27.02.2011, 04:55
Re: Help using enums - by Backwardsman97 - 27.02.2011, 04:56
Respuesta: Help using enums - by TheChaoz - 27.02.2011, 05:09
Re: Help using enums - by [L3th4l] - 27.02.2011, 05:10

Forum Jump:


Users browsing this thread: 1 Guest(s)