Supermacy31
Active member
- Joined
- Mar 13, 2013
- Messages
- 173
- Reaction score
- 1
This snippet is in a label:
.INI:
This crashes the game when executed somehow/or it doesn't even let Sannybuilder compile it:
Code:
if
0@ == 99 //Activated? Then execute function!
then
0AC8: 1@ = allocate_memory_size 260
0AF4: 1@ = read_string_from_ini_file "cleo\kbult.ini" section "connectmgr" key "state"
0AF9: samp say_msg 1@
if
1@ == '/connect' //Note that I tried " and it led to the same result.
then
0AF5: write_string "/disconnect" to_ini_file "cleo\kbult.ini" section "connectmgr" key "state"
else
0AF5: write_string "/connect" to_ini_file "cleo\kbult.ini" section "connectmgr" key "state"
end
0AC9: free_allocated_memory 1@ //Free!
0AF0: 1@ = get_int_from_ini_file "cleo\kbult.ini" section "kb" key "unislimit"
wait 1@
end
.INI:
Code:
[connectmgr]
state=/connect
Code:
if
1@ == '/connect' //Note that I tried " and it led to the same result.
then