CLEO Help Textlabel Teleport

CLEO related
Status
Not open for further replies.

Carps

Member
Joined
Aug 4, 2013
Messages
15
Reaction score
0
Hello, how can I port to a 3D Textlabel  :bawww:
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Using SAMPFUNCS.

0B46: samp 3d_text 1@ defined
0C46: samp get_3d_text_info_by_id 0@ string_ptr 1@ color 2@ position 3@ 4@ 5@ view_distance 6@ show_behind_walls 7@ attached_to_player 8@ attached_to_vehicle 9@
 

Carps

Member
Joined
Aug 4, 2013
Messages
15
Reaction score
0
Hello, what is wrong?

Code:
if
    0AB0: key_pressed 2
    then
       0AF8: samp add_message_to_chat "Suche!" color -1
       for 1@ = 0 to 9999
        if SAMP.Available()
        then 
            06D2: 17@v = "(null)"
            0B46: samp 3d_text 1@ defined
            0C46: samp get_3d_text_info_by_id 1@ string_ptr 3@ color 4@ position 5@ 6@ 7@ view_distance 8@ show_behind_walls 9@ attached_to_player 10@ attached_to_vehicle 11@    
            if
            0C21: strcmp string1 17@v string2 3@v
            then
            0AF8: samp add_message_to_chat "Wrong Label! %d - %s" -1 1@ 3@
            else
            0AF8: samp add_message_to_chat "ID: %d String: %s Color: %s" color 0xFF0000 1@ 3@ 4@
            break
            end
        end    
        end
    end

I would like filter (null) text labels.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Code:
FOR 1@ = 0 to 2048 //MAX_3DTEXT
    IF 0B46: samp 3d_text 1@ defined //not (null)
    THEN 
        0C46: samp get_3d_text_info_by_id 1@ string_ptr 2@ color 3@ position 4@ 5@ 6@ useless $n1 $n2 $n3 $n4
        0AF8: "id: %d, col 0x%x" -1 1@ 3@
        0AF8: "text: %s" -1 2@    //text might be longer than 144chars and will not fit in a single chat line
    END
END
 
Status
Not open for further replies.
Top