Failure -noobie needs help-
#5

pawn Код:
forward JiHad(playerid);
public JiHad(playerid)
{
     SetVehicleHealth(vehicleid, 0)
     SendClientMessage("You have successfully Jihaded!")
     return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Jihad", cmdtext, true, 10) == 0)
        {
        new vehicleid;
            if(!sscanf(cmdtext, "d", vehicleid) return SendClientMessage(playerid, -1, "/Jihad<vehicleid>");
            PutPlayerInVehicle(playerid, vehicleid, 0);
            SetTimerEx("Jihad", 60000, false, "d", playerid);
            SendClientMessage("In 60 seconds your vehicle will explode! (If you want to abort do /StopJihad");
            return 1;
        }
        if (strcmp("/StopJihad", cmdtext, true, 10) == 0)
        {
         new vehicleid = GetPlayerVehicleID(playerid);
         DestroyVehicle(vehicleid);
             return 1;
        }
        return 1;
}
There where quite a few errors in your code.
Reply


Messages In This Thread
Failure -noobie needs help- - by SpasticCaveman - 03.01.2015, 23:42
Re: Failure -noobie needs help- - by Sledgehammer - 03.01.2015, 23:43
Re: Failure -noobie needs help- - by SpasticCaveman - 03.01.2015, 23:45
Re: Failure -noobie needs help- - by Sledgehammer - 03.01.2015, 23:48
Re: Failure -noobie needs help- - by Sledgehammer - 03.01.2015, 23:55

Forum Jump:


Users browsing this thread: 1 Guest(s)