Problem with foreach
#1

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.

Reply
#2

Show us the OtherTimer() code.
Reply
#3

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.
Reply
#4

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?
Reply
#5

Yes!
19582 lines
Reply
#6

At the bottom of the script.

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)