Help me...
#3

Mmmh...?
Please give me an example...
This is my Script, but don't work:


if(strcmp(cmd, "/OpenBon",true) == 0)
{
new AVEH = GetClosestVeh(MAX_VEHICLES);

// This Work
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid, Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective);
SetVehicleParamsEx(vid, Engine, Lights, Alarm, Doors, ON, Boot, Objective);
}
}

// This DON'T Work
if(!IsPlayerInAnyVehicle(playerid))
{
if(AVEH != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(AUTO, Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective);
SetVehicleParamsEx(AUTO, Engine, Lights, Alarm, Doors, ON, Boot, Objective);
}
}
return 1; }
Reply


Messages In This Thread
Help me... - by Tadeo - 20.05.2011, 10:38
Re: Help me... - by Elka_Blazer - 20.05.2011, 10:51
Re: Help me... - by Tadeo - 20.05.2011, 11:26
Re: Help me... - by Steve M. - 20.05.2011, 12:02
Re: Help me... - by Tadeo - 20.05.2011, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)