CLEO Help samp say_msg string?

CLEO related
Status
Not open for further replies.

NeverSayDie

New member
Joined
May 29, 2013
Messages
4
Reaction score
0
Hey

I am a newbie cleo scripter and i am writing a cleo keybinder which can configurate completly in the BINDER_KEY.ini

BINDER_KEY.ini should look like so

KEY TO PRESS | COMMAND SEND INGAME
1 = /stats

(1=/stats)

I use this one:
0AF4: 0@v = read_string_from_ini_file "CLEOBINDER_KEY.INI" section "KEYS" key "1"

and this

0AF9: samp say_msg 0@v

but this doesnt work :S (maybe because say_msg cant used with vars?)

FULL CODE:
Code:
{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'TESTCLEO' 
:TESTCLEO_19
wait 0 
if 
0AF4: 0@v = read_string_from_ini_file "CLEOBINDER_KEY.INI" section "KEYS" key "1" //IF and SET 
else_jump @TESTCLEO_19 
jump @TESTCLEO_19 
0AB0:   key_pressed 49 
   SAMP.Available
else_jump @TESTCLEO_19 
0AF9: samp say_msg 0@v 
wait 800 
jump @TESTCLEO_19
 
Status
Not open for further replies.
Top