guys i fixed it without the snippet the Problem here was the cordinates must be
float
im just a fucking noob damn,
it was just a timer textdraw and its position is annoying to me
the textdraw is always there on ID 40 so no need of a scanner
the old coords
601 352
the new coords
601.0 352.0
OLD CODE that makes textdraw dissapear
Code:
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
thread 'FukTimerTexdrw'
:always
wait 100
if
0C5D: samp textdraw 40 is_exists
jf @always
0C51: samp textdraw 40 set_pos 601 352
wait 3000
jump @always
New Code that works
Code:
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
thread 'FukTimerTexdrw'
:always
wait 100
if
0C5D: samp textdraw 40 is_exists
jf @always
0C51: samp textdraw 40 set_pos 601.0 352.0
wait 3000
jump @always
how did i get a integer coords ?
its from the fucking textdraw scanner that i made myself that writes textdraw coords into ini file
but it was writen in integer
how i used your snippet code
idk how to properly use a snipet
Code:
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
thread 'tedsdwcdlear'
:counter
wait 100
if
0C5D: samp textdraw 40 is_exists
jf @counter
0AB1: @SetTextdrawPosition 40 ID 1000 XY 601 352
jump @counter
:SetTextdrawPosition
{
0.3.7 - R1
0AB1: @SetTextdrawPosition 3 ID 1000 XY 320.0 224.0
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x21A0F8 // SAMP_INFO_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x3CD // SAMP_PPOOLS_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x10 // SAMP_PPOOL_TEXTDRAW_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // TEXTDRAW_ID * 4
005A: 31@ += 0@
0A8D: 30@ readMem 31@ sz 4 vp 0
IF 30@ == TRUE
THEN
31@ += 0x2400 // SAMP_TEXTDRAW_STRUCT_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
IF 31@ > 0
THEN
0A8E: 29@ = 31@ + 0x98B // SAMP_TEXTDRAW_POSITION_X_OFFSET
0A8C: writeMem 29@ sz 4 vl 1@ vp 0
0A8E: 28@ = 31@ + 0x98F // SAMP_TEXTDRAW_POSITION_Y_OFFSET
0A8C: writeMem 28@ sz 4 vl 2@ vp 0
END
END
END
0AB2: 0
jump @counter