CLEO Help Unknown directive Samp.Available().

CLEO related
Status
Not open for further replies.

Cenderme

New member
Joined
Jul 10, 2015
Messages
4
Reaction score
0
I translated a cleo and when i try to compile it, i get an error like this. And if i try to delete it, i get another error. Please any some advice, i dont know what to do with it  :imoverit:

Here is the cleo.



Code:
{$CLEO .cs}
0000: NOP

const 
    SCRIPT_VERSION = 4
 
    UPDATEINFO_FILE = "infobar_update.txt"
    CHANGELOG_FILE = "infobar_changelog.txt"
    
    TIMER_OFFSET = 0xB7CB84
end


while not Samp.Available()
    wait 400
end

wait 1000
0B34: samp register_client_command "infobar" to_label @sb2
0B34: samp register_client_command "infobar_move" to_label @sb3
0B34: samp register_client_command "carinfobar_move" to_label @sb4  

alloc 10@ 128
alloc 11@ 128
alloc 12@ 128
alloc 13@ 128
alloc 14@ 128
alloc 15@ 128
alloc 16@ 128
alloc 17@ 128
alloc 18@ 128
alloc 19@ 128
alloc 20@ 128
alloc 21@ 128
alloc 22@ 128
alloc 23@ 128
alloc 24@ 128
alloc 25@ 128
alloc $namecar 128
alloc 26@ 128 
alloc $doorcar 128 
alloc 27@ 128
alloc 28@ 128
alloc $weaponidinarms 128
alloc $wantedlvl 128
alloc $Timeonyourpc 128
alloc $interioractive 128
alloc $getAmmoInClip 128
alloc $nameofweapon 128
alloc $showfps228 128
alloc $background 256
alloc $fontforinfobar 256

if
8AE4:  not directory_exists "Cleo\INI"
then
0AE5: create_directory "Cleo\INI"
end

And it goes like this...



And here is the whole code






PjE87Dg.png


cdANstT.png
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,734
Solutions
2
Reaction score
117
Some guy pmed me the other day about the same problem. I think someone should make a basic Sampfuncs scripting tutorial.
 

bye

Active member
Joined
Sep 15, 2013
Messages
57
Reaction score
0
zin link said:
Some guy pmed me the other day about the same problem. I think someone should make a basic Sampfuncs scripting tutorial.

Yes. We need a tutorial Please
 
Status
Not open for further replies.
Top