27.09.2018, 12:02
I got this error on Timer code
Код:
invalid function or declaration (4893, 1) invalid function or declaration (4895, 1)
PHP код:
Timer:PlayerChecker[1000]() //4893
{
foreach(new i: Player) //4895
{
if(pInfo[i][pMuted])
{
pInfo[i][pMutedTime]--;
if(pInfo[i][pMutedTime] < 1)
{
pInfo[i][pMuted] = false;
pInfo[i][pMutedTime] = 0;
SendClientMessage(i, COLOR_YELLOW, "AdmCmd: You have been automatically unmuted after serving the mute-time.");
new string[150];
format(string, sizeof(string), "AdmWarn: {FF0000}%s has been automatically unmuted after serving his mute-time", GetName(i));
SendAdminMessage(COLOR_ORANGE, string);
}
}
if(pInfo[i][pJailed])
{
pInfo[i][pJailedTime]--;
if(pInfo[i][pJailedTime] < 1)
{
pInfo[i][pJailed] = false;
pInfo[i][pJailedTime] = 0;
SendClientMessage(i, COLOR_YELLOW, "AdmCmd: You have been automatically unjailed after serving the jail-time.");
new string[150];
format(string, sizeof(string), "AdmWarn: {FF0000}%s has been automatically unjailed after serving his jail-time", GetName(i));
SendAdminMessage(COLOR_ORANGE, string);
}
}
}
return 1;
}