[shcode=cpp] {$CLEO}
:Noname_02 /* This snippet has been created by Shanker Enjoy RPG.B-Zone.Ro (RO/EN) */
WAIT 0 MS
:Noname_03
WAIT 0 MS
IF NOT SAMP.Available
THEN
JUMP @Noname_03
END
0B34: Create Command "FindTXD" to label @Noname_8130
CHATMSG "Textdraw Finder created by Shanker. Use /FindTXD INT | INT = 0 TO INT" -1
CHATMSG "Enjoy FORUM.B-ZONE.RO THE BIGGEST SAMP COMMUNITY [RO/EN]" -1
var
1@ : int
5@ : int
end
:Noname_04
WAIT 0 MS
JUMP @Noname_04
:Noname_8130
SAMP.IsCommandTyped(0@)
IF 8AD4: NOT 4@ = SCAN 0@ format "%d" 5@
THEN JUMP @ERROR
END
1@ += 1
IF 1@ == 5@
THEN GOTO @CMDRET
END
IF 0C5D: samp textdraw 1@ is_exists
THEN CHATMSG "I found textdraw %d " -1 1@
END
:Noname_8140
JUMP @Noname_8130
:CMDRET
1@ = 0
SAMP.CmdRet
:ERROR
CHATMSG "You need an integer. " -1
SAMP.CmdRet[/shcode]
Hello I want to show you my method how to find a textdraw, after I finished my Interface Editor some guys asked me how I got ID of them .
Because forum have some problems I will give you source here: http://pastebin.com/gmCucN1s
First time I wanted to do it with "FOR" function but I still don't know it very good, @Springfield can you show me an example please? You know I won't forget to add you a positive rate ).
:Noname_02 /* This snippet has been created by Shanker Enjoy RPG.B-Zone.Ro (RO/EN) */
WAIT 0 MS
:Noname_03
WAIT 0 MS
IF NOT SAMP.Available
THEN
JUMP @Noname_03
END
0B34: Create Command "FindTXD" to label @Noname_8130
CHATMSG "Textdraw Finder created by Shanker. Use /FindTXD INT | INT = 0 TO INT" -1
CHATMSG "Enjoy FORUM.B-ZONE.RO THE BIGGEST SAMP COMMUNITY [RO/EN]" -1
var
1@ : int
5@ : int
end
:Noname_04
WAIT 0 MS
JUMP @Noname_04
:Noname_8130
SAMP.IsCommandTyped(0@)
IF 8AD4: NOT 4@ = SCAN 0@ format "%d" 5@
THEN JUMP @ERROR
END
1@ += 1
IF 1@ == 5@
THEN GOTO @CMDRET
END
IF 0C5D: samp textdraw 1@ is_exists
THEN CHATMSG "I found textdraw %d " -1 1@
END
:Noname_8140
JUMP @Noname_8130
:CMDRET
1@ = 0
SAMP.CmdRet
:ERROR
CHATMSG "You need an integer. " -1
SAMP.CmdRet[/shcode]
Hello I want to show you my method how to find a textdraw, after I finished my Interface Editor some guys asked me how I got ID of them .
Because forum have some problems I will give you source here: http://pastebin.com/gmCucN1s
First time I wanted to do it with "FOR" function but I still don't know it very good, @Springfield can you show me an example please? You know I won't forget to add you a positive rate ).