CLEO Help Crashing

CLEO related
Status
Not open for further replies.

Holographic

Active member
Joined
Dec 6, 2014
Messages
195
Reaction score
0
Code:
{$CLEO .cs}
0000:
repeat
    wait 40
until 0AFA:
0B34: "setw" @weather
0B34: "sett" @time


WHILE TRUE
    WAIT 0
END

:weather
SAMP.IsCommandTyped(0@)
0C1A: 0@ = 0@
IF AND
    0@ <= 45
    0@ >= 0
THEN
    SAMP.WriteSAMPMemory(0xB2C0, 0xC390, 2)
    01B6: setWeather 0@
ELSE
    0AF8: "Use: /setw <0-45>" 0xC0FF01
END
cmdret

:time
SAMP.IsCommandTyped(1@)
0C1A: 1@ = 1@
IF AND
    1@ <= 23
    1@ >= 0
THEN
    SAMP.WriteSAMPMemory(0xB070, 0xC390, 2)
    SAMP.WriteSAMPMemory(0xB5A0, 0xC390, 2)
    2@ = SAMP.Base()
    2@ += 0x212A80
    0A8D: readMem 2@ = 2@ sz 4 vp 1
    2@ += 0x3D5
    0A8D: readMem 2@ = 2@ sz 4 vp 1
    2@ += 0x2C
    0A8C: writeMem 2@ sz 1 val 1@ vp 1
    0A8C: writeMem 0x00B70153 sz 1 val 1@ vp 0
ELSE
    0AF8: "Use: /sett <0-23>" 0xC0FF01
END
cmdret

crashes me whenever i do /sett
CLEO 4.0
SAMPFUNCS latest ver
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
Code:
{$CLEO .cs}
0000:
repeat
    wait 40
until 0AFA:
0B34: "setw" @weather
0B34: "sett" @time


WHILE TRUE
    WAIT 0
END

:weather
SAMP.IsCommandTyped(0@)
0C1A: 0@ = 0@
IF AND
    0@ <= 45
    0@ >= 0
THEN
    SAMP.WriteSAMPMemory(0xB2C0, 0xC390, 2)
    01B6: setWeather 0@
ELSE
    0AF8: "Use: /setw <0-45>" 0xC0FF01
END
cmdret

:time
SAMP.IsCommandTyped(1@)
0C1A: 1@ = 1@
IF AND
    1@ <= 23
    1@ >= 0
THEN
    SAMP.WriteSAMPMemory(0xBFB0, 0xC390, 2)
    SAMP.WriteSAMPMemory(0xC4E0, 0xC390, 2)
    2@ = SAMP.Base()
    2@ += 0x21A0F8
    0A8D: readMem 2@ = 2@ sz 4 vp 1
    2@ += 0x3C5
    0A8D: readMem 2@ = 2@ sz 4 vp 1
    2@ += 0x2C
    0A8C: writeMem 2@ sz 1 val 1@ vp 1
    0A8C: writeMem 0x00B70153 sz 1 val 1@ vp 0
ELSE
    0AF8: "Use: /sett <0-23>" 0xC0FF01
END
cmdret
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
Code:
{$CLEO .cs}
0000:
repeat
    wait 40
until 0AFA:
SAMP.WriteSAMPMemory(0xC430, 0xC390, 2)
SAMP.WriteSAMPMemory(0xBFB0, 0xC390, 2)
SAMP.WriteSAMPMemory(0xC4E0, 0xC390, 2)

0B34: "setw" @weather
0B34: "sett" @time


WHILE TRUE
    WAIT 0
END

:weather
SAMP.IsCommandTyped(0@)
0C1A: 0@ = 0@
IF AND
    0@ <= 45
    0@ >= 0
THEN
    0BAC: samp 1@ = get_server_settings_ptr
    0C0D: struct 1@ offset 0x2E size 1 = 0@
    01B6: setWeather 0@
ELSE
    0AF8: "Use: /setw <0-45>" 0xC0FF01
END
cmdret

:time
SAMP.IsCommandTyped(1@)
0C1A: 1@ = 1@
IF AND
    1@ <= 23
    1@ >= 0
THEN
    0BAC: samp 2@ = get_server_settings_ptr
    0C0D: struct 2@ offset 0x2C size 1 = 1@
    0A8C: writeMem 0x00B70153 sz 1 val 1@ vp 0
ELSE
    0AF8: "Use: /sett <0-23>" 0xC0FF01
END
cmdret

:imoverit:
 

Holographic

Active member
Joined
Dec 6, 2014
Messages
195
Reaction score
0
Unknown directive SAMP.WriteSAMPMemory(0xC430, 0xC390, 2). when i try to compile
crash after loading bar finishes and screen goes back
please i cant find any cleo that changes time and weather
 
Status
Not open for further replies.
Top