i also told you above. i already have this. but it doesn't work properly.I'll test it later.[CLEO] Some snippets
:DeleteColorCodesFromText { 0AC8: 1@ = allocate_memory_size 260 0AB1: @DeleteColorCodesFromText 2 text 0@ memory_to_store_characters_as_text 1@ } 5@ = FALSE // inbracket 0AA7: call_function 0x718690 num_params 1 pop 1 string 0@ _Returned: length 31@ // Gta Strlen FOR 30@ = 0 TO 31@...ugbase.eu
:SAMPDisconnectWithReason
{
0AB1: @SAMPDisconnectWithReason 1 500
or
0AB1: @SAMPDisconnectWithReason 1 0
}
IF 0AA2: 31@ = "samp.dll"
THEN
0AB1: @get_samp_version_id 0 _returned: ID 17@
IF 17@ > 0
THEN
IF 17@ == 1 // 0.3.7 R1
THEN
31@ += 0x21A0F8
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x3C9
0A8D: 31@ readMem 31@ sz 4 vp 0
0A8E: 30@ = 31@ + 0x0
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x8
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 2 // 0.3.7 R2
THEN
31@ += 0x21A100
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x18
0A8D: 31@ readMem 31@ sz 4 vp 0
0A8E: 30@ = 31@ + 0x0
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x8
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 3 // 0.3.DL
THEN
31@ += 0x2ACA24
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x2C
0A8D: 31@ readMem 31@ sz 4 vp 0
0A8E: 30@ = 31@ + 0x0
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x8
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 4 // 0.3.7 R3
THEN
31@ += 0x26E8DC
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x2C
0A8D: 31@ readMem 31@ sz 4 vp 0
0A8E: 30@ = 31@ + 0x0
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x8
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 5 // 0.3.7 R4
THEN
31@ += 0x26EA0C
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x2C
0A8D: 31@ readMem 31@ sz 4 vp 0
0A8E: 30@ = 31@ + 0x0
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x8
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 6 // 0.3.7 R4 - v2
THEN
31@ += 0x26EA0C
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0
0A8D: 31@ readMem 31@ sz 4 vp 0
0A8E: 30@ = 31@ + 0x0
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x8
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 7 // 0.3.7 R5
THEN
// NOT FOUND
END
0AA6: call 30@ struct 31@ num_params 2 pop 0 params 0 6@
END
END
0AB2: ret 0