Spartan_239
New member
- Joined
- Feb 11, 2014
- Messages
- 1
- Reaction score
- 0
So I am trying to learn scripting with CLEO and it isn't ending very well at the moment. At the moment this is my code:
I intend for it to say "OK" if it can find object 19341 and nothing if it cant for now.
The main trouble I am having is with sampfuncs. I honestly have no clue what I am doing and have tried googling around for the past few hours but cant find anything about sampfuncs and cleo development. I found the
somewhere in my adventures but these aren't allowing it to compile and I have looked through opcodes.text and found
But I don't really know how to make that shit work for me.
So simply put, how can I get it to detect if it is running SAMP and it is available (as the code says) in sampfuncs 3.0?
EDIT: For future reference, I am not new to the scripting scene, I am an experienced scripter in pawn and currently script for a well known SAMP server.
Thanks,
Spartan_239
Code:
{$CLEO .cs}
:EGG
03A4: name_thread "MREGGMAN"
wait 1000
//check if samp is running
/*
if not 1@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not 1@ = SAMP.Available()
wait 100
end
*/
if
0256: player $PLAYER_CHAR defined
03CA: object 19341 exists
then
00BA: text_styled 'FEM_OK' 1000 ms 1
end
I intend for it to say "OK" if it can find object 19341 and nothing if it cant for now.
The main trouble I am having is with sampfuncs. I honestly have no clue what I am doing and have tried googling around for the past few hours but cant find anything about sampfuncs and cleo development. I found the
Code:
if not 1@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not 1@ = SAMP.Available()
wait 100
end
Code:
0AF7: samp 1@ = get_base
0AFA: is_samp_available
So simply put, how can I get it to detect if it is running SAMP and it is available (as the code says) in sampfuncs 3.0?
EDIT: For future reference, I am not new to the scripting scene, I am an experienced scripter in pawn and currently script for a well known SAMP server.
Thanks,
Spartan_239