Hi,
Using a string for the mode parameter instantly crashes the game.
The problem is that it only happens if I compiled the script.
For example, this script by springfield works just fine.
But if I open it and recompile it, without changing anything, it crashes in game.
Oddly enough, using a hex value instead of a string works just fine (eg: 0x6277 instead of "wt+")
I feel like it could be something related to my SannyBuilder or CLEO installation, but after trying out a few things, it still doesn't work...
I am using:
- CLEO 4.3.22
- Sanny Builder 3.3.1
- SAMP 0.3.7-R1
I already tried:
- Uninstalling and reinstalling everything, starting fresh
- CLEO 4.1.1.30
- SAMP 0.3.7-R2
- With or without SAMPFuncs data in /SannyBuilder/data/sa
Here's some examples:
Using a string for the mode parameter instantly crashes the game.
The problem is that it only happens if I compiled the script.
For example, this script by springfield works just fine.
But if I open it and recompile it, without changing anything, it crashes in game.
Oddly enough, using a hex value instead of a string works just fine (eg: 0x6277 instead of "wt+")
I feel like it could be something related to my SannyBuilder or CLEO installation, but after trying out a few things, it still doesn't work...
I am using:
- CLEO 4.3.22
- Sanny Builder 3.3.1
- SAMP 0.3.7-R1
I already tried:
- Uninstalling and reinstalling everything, starting fresh
- CLEO 4.1.1.30
- SAMP 0.3.7-R2
- With or without SAMPFuncs data in /SannyBuilder/data/sa
Here's some examples:
This works:
This crashes the game:
This one crashes too:
Code:
{$CLEO .cs}
0000: NOP
0A9A: 0@ = openfile "CLEO/filename.txt" mode 0x6277
0A9B: closefile 0@
0A93: end_custom_thread
This crashes the game:
Code:
{$CLEO .cs}
0000: NOP
0A9A: 0@ = openfile "CLEO/filename.txt" mode "wt+"
0A9B: closefile 0@
0A93: end_custom_thread
This one crashes too:
Code:
{$CLEO .cs}
0000: NOP
0@ = File.Open("CLEO\filename.txt", "wt+")
File.Close(0@)
0A93: end_custom_thread
Last edited: