CLEO Help Help write ini

CLEO related
Status
Not open for further replies.
Joined
Feb 2, 2018
Messages
12
Reaction score
0
Hello guys! When i want to write string in ini from event organizer its writing like this:

text=avem voie sa tragem in voi eu cu domnu mayor FORTZA  avem voie sa tragem in voi eu cu domnu mayor FORTZA avem voie sa tragem in voi eu cu domnu mayor FORTZA cine nu se izbeste kill cine nu se izbeste kill cine mai intra in mine afara cine mai intra in mine afara 
But i want to copy just "avem voie sa tragem in voi eu cu domnu mayor FORTZA", not 300 copies of texts.


There is what is copying the text. 

Code:
              if
                  0C2B: 15@ = strpbrk string 3@ control ":"
              then
                  0A8C: write_memory 15@ size 1 value 0 virtual_protect 0
                  0AF5: write_string 15@ to_ini_file "cleo\a.ini" section "msgsnormal" key "text"
 
Joined
Feb 2, 2018
Messages
12
Reaction score
0
@doroftel I was gonna to send you a PM, but I dont know why I can`t.

There is some source from copy chat:
If you need more, send me a PM or something like this.
Code:
if
                   0C2B: 6@ = strpbrk string 3@ control ":"
               then
                   0A8C: write_memory 6@ size 1 value 0 virtual_protect 0
                   alloc 9@ = 600
                   alloc 18@ = 600
                   0C13: strcpy destination 9@ source 6@ // we extract all before organizer name:
                    0AF9: samp say_msg "%s %s" 19@v 6@
                    0AF5: write_string 9@ to_ini_file "cleo\event.ini" section "Event" key "Text"
                    chatmsg "Debug 0: %s" -1 9@ 
                    free 9@
                    free 18@
 
Status
Not open for further replies.
Top