How to stop the error ?
#2

You open a function, but dont close it.
pawn Code:
if(strcmp("/aflip", cmdtext, true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(GetPlayerScore(playerid, 100))
            {
                new vehicle;
                new Float:zangle;
                vehicle = GetPlayerVehicleID(playerid);
                GetVehicleZAngle(vehicle,zangle);
                SetVehicleZAngle(vehicle,zangle);
                SendClientMessage(playerid, COLOR_NAVY, "[APS]Vehicle Flipped");
                return 1;
            } else return SendClientMessage(playerid, COLOR_NAVY, "You dont have 100 score!");
        } else return SendClientMessage(playerid, COLOR_NAVY, "Youre not in a vehicle");
        return 1;
    }
Also, may i suggest you should use ZCMD, since its faster then strcmp & its easier to use?
Reply


Messages In This Thread
PLEASE DELETE - by [LHT]Bally - 10.09.2011, 17:46
Re: How to stop the error ? - by Wesley221 - 10.09.2011, 17:48
Re: How to stop the error ? - by [LHT]Bally - 10.09.2011, 17:50
Re: How to stop the error ? - by Wesley221 - 10.09.2011, 17:52
Re: How to stop the error ? - by [LHT]Bally - 10.09.2011, 17:53
Re: How to stop the error ? - by [M]onsieur - 10.09.2011, 17:57
Re: How to stop the error ? - by [LHT]Bally - 10.09.2011, 18:02
Respuesta: How to stop the error ? - by OPremium - 10.09.2011, 18:02
Re: How to stop the error ? - by [LHT]Bally - 10.09.2011, 18:05

Forum Jump:


Users browsing this thread: 2 Guest(s)