m1zg4rd_PL
Well-known member
- Joined
- Jul 19, 2013
- Messages
- 222
- Reaction score
- 0
Why this script is sending "Script loaded :3", but don't want to load messages from .ini file?
My SENDING.INI file:
0 value is to inform external program that script added message succesfully.
Code:
{$VERSION 3.1.1000}
{$CLEO .cs}
//-------------MAIN---------------
thread 'SENDING'
wait 3000
if
0AF7: get_samp_base_to 0@
else_jump @SENDING_32
:SENDING_32
wait 400
0AFA: is_samp_structures_available
else_jump @SENDING_32
:SENDING_46
wait 50
if
0AAB: file_exists "CLEO\SENDING.INI"
else_jump @SENDING_145
wait 5
0AF8: samp add_message_to_chat "SCRIPT LOADED :3" 16777215
jump @SENDING_197
:SENDING_145
wait 10
0AF1: write_int 0 to_ini_file "CLEO\SENDING.INI" section "MAIN" key "TO_SEND"
jump @SENDING_46
:SENDING_197
wait 250
06D2: 2@v = "0" // @v = string
0AF4: 1@v = read_string_from_ini_file "CLEO\SENDING.INI" section "MAIN" key "TO_SEND"
if
0C14: strcmp string1 1@v string2 2@v
else_jump @SENDING_283
wait 750
jump @SENDING_197
:SENDING_283
wait 250
0AF8: samp add_message_to_chat 1@v 16777215
06D2: 1@v = "0" // @v = string
0AF1: write_int 0 to_ini_file "CLEO\SENDING.INI" section "MAIN" key "TO_SEND"
jump @SENDING_197
My SENDING.INI file:
Code:
[MAIN]
TO_SEND=TEST
0 value is to inform external program that script added message succesfully.