Posts: 156
Threads: 12
Joined: Jan 2016
Quote:
Originally Posted by Spmn
Did you restart your server by typing gmx in server console? (or any other equivalent)
If so, don't do it anymore. Just stop&start the server.
// Why don't you simply test foreach like this:
Код:
CMD:hello(playerid, params[])
{
new var = 0;
foreach(new i : Player)
{
printf("Iterating\n");
var++;
}
printf("Result : %d ",var);
return 1;
}
If var == player count, then the issue lies in your code.
|
Thank you for replying i didnt restart my server by gmx and today i tested that on first connect to the server the foreach is skipping each iterations but when i exit from the game and reconnect it starts working i think its a problem in "Player" var seeding in the include.And yeah i tested it in that way @ first then also it was all same result then i added some functions and done the checking and i have seen that Kar bumped this topic so i decided to come up with last debug code thats why..