Error YSI last version
# support-forum
s
I don't know how to change the code generation
g
Did you make sure you set that before you included YSI's libraries, and I mean it has to be added before any library is ever included just to be sure no external library is including YSI itself.
s
@gentle-london-6993 I have one that includes ysi, what should I do?
g
As stated above, includes YSI before any library
s
this its te crash error * YSI Fatal Error: Out of code generation (CGen) space. The current value of CGEN_MEMORY is 10000, please recompile with a higher value (approximately 20000).
If I give you the files from my server, do you fix the errors?
g
Just include YSI before any includes
Copy code
c
#include <YSI>
#include <a_samp>
s
dude that's not the problem
b
Redefine CGEN_MEMORY with a higher value. Also, the max you can go is 50.000 however you should be good with 25.000
s
I don't know how to change the code generation
b
I just told you
s
How
Where it's the option?
b
Redefine it
s
@blue-piano-5315 ok, I really know what to do, but my question is where do I do that?
b
In your script
s
with a #pragma?
specify more please
b
No, REDEFINE it
s
WHERE
b
IN YOUR SCRIPT
USE #DEFINE
s
what should i put
XD
b
The error legits tells you
CGEN_MEMORY
s
#undef CGEN_MEMORY #define CGEN_MEMORY 2000
b
Not 2000
s
so i put it?
* YSI Fatal Error: Out of code generation (CGen) space. The current value of
CGEN_MEMORY
is
2000
, please recompile with a higher value (approximately 2000).
b
What i told you
s
its solved
i have other error #1 0001b258 in public OnPlayerKeyStateChange (... ) at C:\Users\Administrator\Desktop\FLRP GM C20122022\pawno\include\YSI-Includes\YSI_Coding\y_inline\..\y_cgen\y_cgen.inc:133
2 Views