CLEO Help Problem when testing the cleo compiled by myself.

CLEO related
Status
Not open for further replies.

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
Hi, i have a problem when i compile this, made by springfield (here is the topic), the cleo must say the location where am i and the text i put on the .ini.

Code:
{$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

Code:
[Activation]
KEY=18
KEY2=49
SAY=i need help at

I compile it but when i join the game i press alt+1 but it just say: ", !". It doesnt say the text which is on the .ini and the location.

Can anybody help me please.

GTA SA 1.0 US (13,7MB = 14.383.616 bytes), SAMPFUNCS v3.1.2.asi, CLEO 4.1, silent's asi loader and SA-MP 0.3z R1.
 
Status
Not open for further replies.
Top