Mission System Weird Problem
#9

I don't see any missing semicolons, but maybe you can spot something?


This is the code extended a bit, with the start of OnPlayerText, and more commands after.
Код:
public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
//----------------
//**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: 2 Guest(s)