SA-MP Forums Archive
Crazy compilers! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Crazy compilers! (/showthread.php?tid=322959)



Crazy compilers! - clavador - 04.03.2012

I've found what was causing the problems:

I'm using DjSon by Draco Blue to store and retrieve data.

I've found that if I do:

pawn Код:
GetInt( playerid, string[] )
{
     return djInt(PlayerName(playerid),string);
}
it doesn't work and messes up my whole script.

i have to do:

pawn Код:
GetInt( playerid, string[] )
{
     new value = djInt(PlayerName(playerid),string);
     return value;
}
It was driving me crazy!


Re: Crazy compilers! - R0FLC0PTER - 04.03.2012

The XML file is probably the documentation file generated by the compiler, nothing bad.

But about your scripts not working after some time, i don't know what is cause this.
Maybe you have an application (or maybe even a virus) running corrupting the amx file.


Respuesta: Crazy compilers! - clavador - 05.03.2012

I can confirm this now by saying that sometimes the compiler will compile fine, but when I enter the game some things don't work as spected.

I think that the "-d0 -r" parameter was just a matter of luck of the moment, given that I'm using it right now and is happening again.