*** This topic title sucks, "help me" is not descriptive.
#1

Okay so heres my problem if you want to attach the Xoomer trailer to a roadtrain or linerunner the health should go down till it once explodes... I've tried some stuff but i can't manage to get it to work. This is what i got.

pawn Код:
for(new c = 0; c < MAX_PLAYERS; c++)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(IsPlayerInAnyVehicle(c))
        {
            if(GetVehicleModel(vehicleid) == 515)
            {
                if(GetVehicleModel(GetVehicleTrailer(vehicleid))== 584)
                {
                    new Float:health;
                    new veh = GetPlayerVehicleID(playerid);
                    GetVehicleHealth(GetVehicleModel(GetVehicleTrailer(veh))== 584, health);
                    SetVehicleHealth(GetVehicleModel(GetVehicleTrailer(veh))== 584, health-1);
                }

            }
        }

    }
This is in a timer wich repeats every 500 MS. Outputs no errors but neither removes 1 HP everytime it runs... Anyone can help?

Thanks in advance
Reply


Messages In This Thread
*** This topic title sucks, "help me" is not descriptive. - by thimo - 04.11.2012, 12:19
Re: Help with something - by iGetty - 04.11.2012, 12:38
Re: Help with something - by Danyal - 04.11.2012, 12:46
Re: Help with something - by thimo - 04.11.2012, 12:58
Re: Help with something - by Danyal - 04.11.2012, 13:13
Re: Help with something - by thimo - 04.11.2012, 13:27
Re: Help with something - by ExpertSahil - 04.11.2012, 13:32
Re: Help with something - by tyler12 - 04.11.2012, 13:36
Re: Help with something - by thimo - 04.11.2012, 13:39
Re: Help with something - by thimo - 04.11.2012, 13:47

Forum Jump:


Users browsing this thread: 3 Guest(s)