[Include] foreach 0.4.1 standalone include
#36

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
Sorry for double posting but i really found a thing.When i use my own custom iterator for player instead of the default one its working Ghost you should also try these whether its working for you or not:
PHP код:
#include <a_samp>
#include<foreach>
#include<zcmd>
#define FILTERSCRIPT
new Iterator:SS_Player<MAX_PLAYERS>;
public 
OnPlayerConnect(playerid)
{
Iter_Add(SS_Player,playerid);
return 
1;
}
public 
OnPlayerDisconnect(playerid,reason)
{
Iter_Remove(SS_Player,playerid);
return 
1;
}
public 
OnFilterScriptExit()
{
Iter_Clear(SS_Player);
return 
1;
}
CMD:test(playerid)
{
new var,
i;
printf("i before iterating = %d ",i);
printf("Contains %d"Iter_Count(Player));
foreach( 
SS_Player)
{
var++;
printf("iterating");
}
printf("i after complete iterations = %d var = %d ",i,var);
return 
1;

OMG its now fucking working thanks! so this was the problem from default iterator?
Reply


Messages In This Thread
foreach 19 standalone include - by Kar - 14.04.2015, 10:02
Re: foreach 0.4.1 standalone include - by RaeF - 14.04.2015, 10:07
Re: foreach 0.4.1 standalone include - by lukewid - 14.04.2015, 10:53
Re: foreach 0.4.1 standalone include - by Crayder - 14.04.2015, 11:31
Re: foreach 0.4.1 standalone include - by Gammix - 14.04.2015, 13:43
Re: foreach 0.4.1 standalone include - by Kar - 14.04.2015, 14:32
Re: foreach 0.4.1 standalone include - by Crayder - 14.04.2015, 20:44
Re: foreach 0.4.1 standalone include - by Kar - 14.04.2015, 23:35
Re: foreach 0.4.1 standalone include - by Emmet_ - 14.04.2015, 23:40
Re: foreach 0.4.1 standalone include - by Crayder - 15.04.2015, 00:10
Re: foreach 0.4.1 standalone include - by Abagail - 15.04.2015, 01:06
Re: foreach 0.4.1 standalone include - by Sasino97 - 05.09.2015, 10:27
Re: foreach 0.4.1 standalone include - by n0minal - 28.09.2015, 23:34
Re: foreach 0.4.1 standalone include - by Crayder - 28.09.2015, 23:53
Re: foreach 0.4.1 standalone include - by n0minal - 29.09.2015, 00:04
Re: foreach 0.4.1 standalone include - by Kar - 29.09.2015, 00:36
Re: foreach 0.4.1 standalone include - by Abagail - 29.09.2015, 02:17
Re: foreach 0.4.1 standalone include - by n0minal - 29.09.2015, 02:23
Re: foreach 0.4.1 standalone include - by Crayder - 29.09.2015, 03:50
Re: foreach 0.4.1 standalone include - by Droxx - 07.01.2016, 13:44
Re: foreach 0.4.1 standalone include - by Kar - 13.07.2016, 05:20
Re: foreach 0.4.1 standalone include - by justice96 - 13.07.2016, 05:23
Re: foreach 0.4.1 standalone include - by Liberation - 29.08.2016, 23:46
Re: foreach 0.4.1 standalone include - by Kar - 30.08.2016, 00:00
Re: foreach 0.4.1 standalone include - by Kar - 30.08.2016, 01:01
Re: foreach 0.4.1 standalone include - by Crayder - 30.08.2016, 06:32
Re: foreach 0.4.1 standalone include - by Kar - 31.08.2016, 00:22
Re: foreach 0.4.1 standalone include - by Gammix - 09.09.2016, 15:56
Re: foreach 0.4.1 standalone include - by Stinged - 09.09.2016, 17:10
Re: foreach 0.4.1 standalone include - by Gammix - 09.09.2016, 17:23
Re: foreach 0.4.1 standalone include - by GhostHacker - 10.09.2016, 04:25
Re: foreach 0.4.1 standalone include - by Spmn - 10.09.2016, 22:04
Re: foreach 0.4.1 standalone include - by GhostHacker - 11.09.2016, 02:12
Re: foreach 0.4.1 standalone include - by SyS - 13.09.2016, 15:10
Re: foreach 0.4.1 standalone include - by SyS - 15.09.2016, 02:09
Re: foreach 0.4.1 standalone include - by GhostHacker - 15.09.2016, 04:02
Re: foreach 0.4.1 standalone include - by SyS - 15.09.2016, 04:05
Re: foreach 0.4.1 standalone include - by ZiGGi - 15.09.2016, 04:36
Re: foreach 0.4.1 standalone include - by Crayder - 15.09.2016, 05:12
Re: foreach 0.4.1 standalone include - by Konstantinos - 15.09.2016, 07:47
Re: foreach 0.4.1 standalone include - by ZiGGi - 15.09.2016, 11:23
Re: foreach 0.4.1 standalone include - by Crayder - 15.09.2016, 11:49
Re: foreach 0.4.1 standalone include - by ZiGGi - 15.09.2016, 12:28
Re: foreach 0.4.1 standalone include - by KokyZ - 10.11.2016, 18:15
Re: foreach 0.4.1 standalone include - by Konstantinos - 10.11.2016, 18:28
Re: foreach 0.4.1 standalone include - by KokyZ - 10.11.2016, 18:34
Respuesta: foreach 0.4.1 standalone include - by iSanchez - 18.03.2017, 23:18
Re: Respuesta: foreach 0.4.1 standalone include - by ISmokezU - 18.03.2017, 23:35
Re: Respuesta: foreach 0.4.1 standalone include - by Crayder - 19.03.2017, 20:08
Re: foreach 0.4.1 standalone include - by Gammix - 24.06.2017, 05:53
Re: foreach 0.4.1 standalone include - by Unrea1 - 27.08.2017, 00:04
Re: foreach 0.4.1 standalone include - by Kar - 02.10.2017, 19:27

Forum Jump:


Users browsing this thread: 8 Guest(s)