Mission System Weird Problem
#10

Why is 'OnPlayerCommandText' not open and closed with a bracket, or you've forgotten to do add that?
pawn Код:
public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
     return 1;
}
//----------------
//**All Commands**
//----------------

//Mission Commands
CMD:work(playerid, params[])
{
    if(!IsPlayerInDynamicCP(playerid, job_cp)) return SendClientMessage(playerid, -1, "You are not in the checkpoint!");
    else
    {
           if( !isPlayerInMission[ playerid ] )
           {
               isPlayerInMission[ playerid ] = true; // he is now doing one
               Player_SetUpForMission( playerid ); // stock coming in later, ignore
           }
           else
                return SendClientMessage(playerid, -1, "You are already doing a mission.");
    }
    return 1;
}
//Player Commands

CMD:kill(playerid, params[])
{
    SendClientMessage(playerid, red, "*You have killed yourself!");
    SetPlayerHealth(playerid, 0);
    return 1;
}
Reply


Messages In This Thread
Mission System Weird Problem - by Excelize - 15.12.2013, 22:12
Re: Mission System Weird Problem - by Danialdano - 15.12.2013, 22:18
Re: Mission System Weird Problem - by Excelize - 15.12.2013, 22:19
Re: Mission System Weird Problem - by Danialdano - 15.12.2013, 22:22
Re: Mission System Weird Problem - by Excelize - 15.12.2013, 22:34
Re: Mission System Weird Problem - by Danialdano - 15.12.2013, 22:36
Re: Mission System Weird Problem - by Excelize - 15.12.2013, 22:43
AW: Re: Mission System Weird Problem - by Nero_3D - 15.12.2013, 22:43
Re: Mission System Weird Problem - by Excelize - 15.12.2013, 22:49
Re: Mission System Weird Problem - by Loot - 15.12.2013, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)