21.09.2016, 14:45
Sorry,
Here I failed to put the return in the correct position:
Here I forgot to close this "if(onduty[playerid"
Here I failed to put the return in the correct position:
PHP код:
CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >1)
{
if(onduty[playerid] == false)
{
SendClientMessage(playerid, COL_WHITE, "Good Luck on your duties!");
onduty[playerid] = true;
}
else
{
SendClientMessage(playerid, COL_WHITE, "message!");
onduty[playerid] = false;
}
}
return 1;
}
PHP код:
public OnPlayerText(playerid, text[])
{
if(onduty[playerid] == true)
{
new str[144];
format(str, sizeof (str), "{FFFF00}ON DUTY{FFFFFF} %s", text);
SendPlayerMessageToAll(playerid, str);
return 0;
}
return 1;
}

