Help Delete a textdraw with a specific text.

Joined
Nov 16, 2017
Messages
18
Likes
0
Points
6
#1
So basically I'm trying to delete a textdraw that has a specific text as soon as samp is ready, I have been converting one of my LUA mods to a CLEO and this is the last bit that I can't get to work.

Here's my LUA code so that you can get an idea of what I'm trying to do:

(under my loop)
PHP:
if removeCount ~= 3 then deleteServerSide() end
(outside my loop)
PHP:
function deleteServerSide()
    for i = 0, 2500 do
        if string.len(sampTextdrawGetString(i)) < 2 and not string.find(sampTextdrawGetString(i), "'") then
            sampTextdrawDelete(i) 
            removeCount = removeCount+1
        end
    end
end
So I'm trying to delete the first 3 textdraws that have the text ' and only the first 3.

Works perfect in LUA but I'm getting close to giving up on the CLEO version, I can't work it out.

Any help would be amazing, tah.
 
Top