15.12.2013, 22:49
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.
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; }