SA-MP Forums Archive
Problem with foreach - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with foreach (/showthread.php?tid=598373)



Problem with foreach - Edw - 11.01.2016

Hi guys! I have a very big problem. First, I want to excuse my English.
So I took a gamemode on the internet, everything was ok (I crashdetect that work and do not receive errors). I've started to edit it until I got to the dialogues that I wanted to do through the new dialog appeared namely DIALOG_TABLIST, gave updates to include a_samp.inc and a_actor.inc and since then until now receiving errors callback with foreach.
I hope you understand, I tried other versions foreach and did not go, I must say that I like this is the last in 2015.




Re: Problem with foreach - FreAkeD - 11.01.2016

Show us the OtherTimer() code.


Re: Problem with foreach - Edw - 11.01.2016

PHP код:
function OtherTimer()
{
    new 
str[128], string[128];
    foreach(
Playeri)
    { 
I assure you that if you use sites that were included in server works, it's something to include.
Everything in the "foreach" is not working.


Re: Problem with foreach - Vince - 11.01.2016

This means that you are using too much memory. The server is trying to allocate more memory than it has been assigned, leading to this sort of situations. Does the "code size" information come up when you compile?


Re: Problem with foreach - Edw - 11.01.2016

Yes!
19582 lines



Re: Problem with foreach - AbyssMorgan - 11.01.2016

At the bottom of the script.

PHP код:
#pragma dynamic (64*1024) //64 KB 
or more


Re: Problem with foreach - Edw - 11.01.2016

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
At the bottom of the script.

PHP код:
#pragma dynamic (64*1024) //64 KB 
or more
Thank you very much!
+repp