03.01.2011, 15:45
How can i control my vehicles doors, lights, boot, bonnet, engine and alarm in 0.3c?
I tried this with the engine and would with everything but
I tried this with the engine and would with everything but
Код:
C:\Users\Labas\Desktop\GM\gamemodes\GM.pwn(382) : warning 219: local variable "objective" shadows a variable at a preceding level C:\Users\Labas\Desktop\GM\gamemodes\GM.pwn(12092) : warning 219: local variable "objective" shadows a variable at a preceding level
Код:
if(dialogid == 802)
{
if(response)
{
if(listitem == 0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
}
if(listitem == 1)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective);
}
}
return 1;
}

