Help I need help with .cs code

Alkanoid

Member
Joined
Aug 6, 2024
Messages
5
Reaction score
0
Can someone help me with the code?

Code:
    Ö  °
M ŕ˙˙˙ dů
 ô ţ˙˙˙FLAG   SRC S  {$CLEO .cs}
0000: NOP

:LOOP
0001: wait 0 ms

IF
0AB0: key_pressed 0x06  //
THEN
    0001: wait 100 ms // Krátké čekání pro zamezení opakovaného vykonávání

    // Odeslání příkazu "/help" do chatu
    0AF9: samp say_msg

    0001: wait 500 ms // Krátké čekání, aby se předešlo rychlému opakování příkazu
END

jump @LOOP'   __SBFTR

Firstly:
When I press the specified button in SAMP, this error appears in the chat: "Warning(s007): Exception 0xC0000005 at 0x7056F715"

Secondly:
When I try to compile my .cs file with "/help" in Sunny, it gives me an "expect 0" error. When I manually add it to the .cs file, launch the game, and press the button, the game crashes (probably due to a HEX code missing in the .cs file).
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
0AF9: samp say_msg
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY

WHILE TRUE
WAIT 0

IF 0B61:  samp is_local_player_spawned
THEN
    IF 0AB0: key_pressed 0x06 // KEY PRESSED
    THEN
        REPEAT
        WAIT 0
        UNTIL 8AB0: key_pressed 0x06    // KEY NOT PRESSED
        0AF9: samp say_msg "Hello"
    END
END

END
 

Alkanoid

Member
Joined
Aug 6, 2024
Messages
5
Reaction score
0
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY

WHILE TRUE
WAIT 0

IF 0B61:  samp is_local_player_spawned
THEN
    IF 0AB0: key_pressed 0x06 // KEY PRESSED
    THEN
        REPEAT
        WAIT 0
        UNTIL 8AB0: key_pressed 0x06    // KEY NOT PRESSED
        0AF9: samp say_msg "Hello"
    END
END

END
Same error in Sanny builder:
 

ZyZ.MaxiM

Active member
Joined
Nov 14, 2022
Messages
100
Solutions
2
Reaction score
4
Use sanny builder 3.
 
Top