CLEO Help How to do this...

CLEO related
Status
Not open for further replies.

Hidend

Expert
Joined
Mar 4, 2013
Messages
625
Reaction score
39
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:Noname_2
wait 400
  SAMP.Available
else_jump @Noname_2
0000: NOP

:Noname_18
0AF0: 0@ = get_int_from_ini_file "cleo\cleo.ini" section "Activation" key "KEY"
0AF0: 1@ = get_int_from_ini_file "cleo\cleo.ini" section "Activation" key "KEY2"
0AC8: 10@ = 260
0AF4: 10@ = get_string_from_ini_file "cleo\cleo.ini" section "Activation" key "SAY"
wait 0
if and
key_down 0@
key_down 1@
else_jump @Noname_221
gosub @Noname_228
0ADE: 15@v = text_by_GXT_entry s$93
0ADE: 20@v = text_by_GXT_entry s$95
0AF9: samp say_msg "%s %s, %s!" 10@ 15@v 20@v
wait 200
jump @Noname_221

:Noname_221
0AC9: 10@
jump @Noname_18

:Noname_228
wait 0
gosub @Noname_354
gosub @Noname_384
if or
05AD:  s$93 == 'la' // s$ == short
05AD:  s$93 == 'sf' // s$ == short
05AD:  s$93 == 've' // s$ == short
else_jump @Noname_313
05A9: s$93 = 'ct' // s$

:Noname_313
if
05AD:  s$93 == 'san_and' // s$ == short
else_jump @Noname_352
05A9: s$93 = 'cn' // s$

:Noname_352
return

:Noname_354
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0843: get_zone_at 1@ 2@ 3@ nameA_to s$93 // 8-byte string
return

:Noname_384
gosub @Noname_677
if
  7@ == 0
else_jump @Noname_423
05A9: s$95 = 'cs' // s$

:Noname_423
if
  7@ == 1
else_jump @Noname_455
05A9: s$95 = 'la' // s$

:Noname_455
if
  7@ == 2
else_jump @Noname_487
05A9: s$95 = 'sf' // s$

:Noname_487
if
  7@ == 3
else_jump @Noname_519
05A9: s$95 = 've' // s$

:Noname_519
if
05AD:  s$93 == 'san_and' // s$ == short
else_jump @Noname_558
05A9: s$95 = 'san_and' // s$

:Noname_558
if
05AD:  s$93 == 'la' // s$ == short
else_jump @Noname_597
05A9: s$95 = 'la' // s$

:Noname_597
if
05AD:  s$93 == 'sf' // s$ == short
else_jump @Noname_636
05A9: s$95 = 'sf' // s$

:Noname_636
if
05AD:  s$93 == 've' // s$ == short
else_jump @Noname_675
05A9: s$95 = 've' // s$

:Noname_675
return

:Noname_677
0842: 7@ = player $PLAYER_CHAR town_number
return
In that code, i want to have like 5 things to say, with different keys all, and all from a .ini, i tried some shit but don't work, i tried with thermal, springfield and opcode but are too busy haha, so i put this here if they have some free time or anyone have free time to help me with this, i will grateful
 

Hidend

Expert
Joined
Mar 4, 2013
Messages
625
Reaction score
39
Opcode.eXe link said:
:imoverit: I still dont know what this shit is xD
You say in .ini, in "SAY" what you got in 10@
So you will say...

Example: I need a car in Idlewood, Los Santos (where you are)

all here is good

but now i want to do some multiple lines for this, so i can put more thing and not just one...

you understand?
 

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
I will try make this later when i get on my pc , just have to know how you can read .ini from cleo and the rest should be fine :D
 
Status
Not open for further replies.
Top