new value stop the server
#1

hey, i got a problem after i write this one down:

arrCoords[98][32];

for checking i sent a message before this thing and after it, and for some reason all the things that
comes after this new value doesn't happening, like its stopping them for some reason,
and i get only the first testing message (TEST1)

pawn Код:
print("TEST1");
new arrCoords[98][32];
print("TEST2");
Reply
#2

any help...?
Reply
#3

Do you have alot of new <something>[BIGVALUE][VALUE] ? Because you know that code will create a 32 character long string x 98. So It would be like doing new value[3136];

If you have more of those, It could be that you're running out of memory, though I doubt It but that seems to be It.
What computer specifications do you have?

And remember, coords can't and will not be stored in that value.
Reply
#4

well, i got few of those, but i made them smaller than this one.
the funny thing is that in the other arrCoords it doesn't happend
i even tried to short the 98 to 42 for example and try again and it still not working..
Reply
#5

Floats can't be saved in that array, try:

pawn Код:
pawnnew Float:CoordX
new Float:CoordY
new Float:CoordZ
or if you want it in an array

pawn Код:
enum aCoor
{
  Float:arrCoordX,
  Float:arrCoordY,
  Float:arrCoordZ,

  new arrCoords[aCoor];
}
Reply
#6

im not using floats, but the problem is not what you tried to help in,
after the "new arrCoords[98][32];" everything that comes after doesn't happend, like nothing responds anymore.
Reply
#7

Can you post the bugged function/callback?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)