[Assistance needed] - Failed to loop through players.
#8

Faith, the no answer spam is caused by whenever your loop goes through an id that isn't in the virtual world it defaults to your else statement.. every time... here's my style of fixing this, put the no answer outside of the for loop, and before the loop make a variable, we can call it check. since when a variable is made it defaults to zero, so where you have the
Код:
SendClientMessage(i, COLOR_YELLOW, "( I ) Riiing.. riing.");
one line below that put check = 1; and after the loop have an if statement saying
Код:
 if (check != 1) SendClientMessage(playerid, COLOR_YELLOW, "( I ) No answer");
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)