24.12.2016, 20:04
Hey, I've been struggling with this lately; The problem is in the corner, but seems like I can't fix it.
Whenever there are no players who have 'Test 1, TestOK 2 or higher' I want the error message to be displayed.
However, when a player has 'Test 2 && TestOK 2 or higher' the error message isn't displayed. I hope it was understandable.
PHP код:
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
if(PlayerInfo[i][Test] != 1 && PlayerInfo[i][TestOK] < 2)
{
SCM(playerid, COLOR_RED, "Error: No Tests are online.");
return 1;
}
else
{
SCM(playerid, COLOR_YELLOW, "Test request has been sent.");
format(string, sizeof string, "~ %s requested a Test!", PlayerName(playerid));
SendTestMessage(-1, string);
}
Testrequest[playerid] = 1;
}
However, when a player has 'Test 2 && TestOK 2 or higher' the error message isn't displayed. I hope it was understandable.