CLEO Help Near point problem

CLEO related
Status
Not open for further replies.

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Hello, why then i being near point[font=Monaco, Consolas, Courier, monospace] the marker not disable?[/font]
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00EC: actor $PLAYER_ACTOR sphere 41 near_point -2431.7334 -1619.9863 526.5435 radius 3.0 3.0
THEN
wait 1500
Marker.Disable(22@)
END
END
END
I was tried use this:
IF 00EC: actor $PLAYER_ACTOR sphere 41 near_point -2431.733 -1619.986 radius 526.5435 3.0
but this disable just a one time...
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
kazkaS said:
Hello, why then i being near point[font=Monaco, Consolas, Courier, monospace] the marker not disable?[/font]
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00EC: actor $PLAYER_ACTOR sphere 41 near_point -2431.7334 -1619.9863 526.5435 radius 3.0 3.0
THEN
wait 1500
Marker.Disable(22@)
END
END
END
I was tried use this:
IF 00EC: actor $PLAYER_ACTOR sphere 41 near_point -2431.733 -1619.986 radius 526.5435 3.0
but this disable just a one time...

00ED: actor $PLAYER_ACTOR 0 near_point 0.0 0.0 radius 10.0 10.0 on_foot
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Idk why, but still not working 
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 526.5435 radius 4.0 4.0 on_foot
THEN
wait 500
Marker.Disable(22@)
END
END
END
Video: https://youtu.be/abSVEUYRQ5U
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
kazkaS said:
Idk why, but still not working 
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 526.5435 radius 4.0 4.0 on_foot
THEN
wait 500
Marker.Disable(22@)
END
END
END
Video: https://youtu.be/abSVEUYRQ5U

Send code PM
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Parazitas said:
kazkaS said:
Idk why, but still not working 
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 526.5435 radius 4.0 4.0 on_foot
THEN
wait 500
Marker.Disable(22@)
END
END
END
Video: https://youtu.be/abSVEUYRQ5U

Send code PM

I don't wanna, because it's private and popular in one server.. sorry
I will try something else, thanks for helping
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
kazkaS said:
Hello, why then i being near point[font=Monaco, Consolas, Courier, monospace] the marker not disable?[/font]
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00EC: actor $PLAYER_ACTOR sphere 41 near_point -2431.7334 -1619.9863 526.5435 radius 3.0 3.0
THEN
wait 1500
Marker.Disable(22@)
END
END
END
I was tried use this:
IF 00EC: actor $PLAYER_ACTOR sphere 41 near_point -2431.733 -1619.986 radius 526.5435 3.0
but this disable just a one time...

maybe this help you

while true
wait 0

            0AF0: 29@ = get_int "cleo\Settings.ini" section "OtherShet" key "Marker"
            IF 29@ == 1
            THEN
            29@ = 0 //OFF
              //code here         
            018C: 1084 0.0 0.0 0.0
            ELSE
            29@ = 1 //ON 
               // code here 
            018C: 1083 0.0 0.0 0.0
            END
            0AF1: write_int 29@ to "cleo\Settings.ini" section "OtherShet" key "Marker"

END //end while true
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
The problem is then i enable 22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435) in 00EC: actor $PLAYER_ACTOR sphere 41 near_point -2431.733 -1619.986 radius 526.5435 3.0 it's work's perfectly, but if i enable it not in 00EC: actor $PLAYER_ACTOR sphere 41 near_point -2431.733 -1619.986 radius 526.5435 3.0 and i come to that poss, then code not disable marker
i think u understand what i saying :D
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
kazkaS said:
Parazitas said:
kazkaS said:
Idk why, but still not working 
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 526.5435 radius 4.0 4.0 on_foot
THEN
wait 500
Marker.Disable(22@)
END
END
END
Video: https://youtu.be/abSVEUYRQ5U

Send code PM

I don't wanna, because it's private and popular in one server.. sorry
I will try something else, thanks for helping

U don't wanna share this "Private" code, but this code is so simple :D
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Parazitas said:
kazkaS said:
Parazitas said:
kazkaS said:
Idk why, but still not working 
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 526.5435 radius 4.0 4.0 on_foot
THEN
wait 500
Marker.Disable(22@)
END
END
END
Video: https://youtu.be/abSVEUYRQ5U

Send code PM

I don't wanna, because it's private and popular in one server.. sorry
I will try something else, thanks for helping

U don't wanna share this "Private" code, but this code is so simple :D
yeah, but why i don't wanna share it, is because of coordination
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
kazkaS said:
Parazitas said:
kazkaS said:
Parazitas said:
kazkaS said:
Idk why, but still not working 
Code:
IF 
12@ == 1
THEN
IF 
13@ == 0
THEN 
22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [Alpinistas]{FFFFFF} | nurodytas tavo MiniMap'e." -1
IF
00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 526.5435 radius 4.0 4.0 on_foot
THEN
wait 500
Marker.Disable(22@)
END
END
END
Video: https://youtu.be/abSVEUYRQ5U

Send code PM

I don't wanna, because it's private and popular in one server.. sorry
I will try something else, thanks for helping

U don't wanna share this "Private" code, but this code is so simple :D
yeah, but why i don't wanna share it, is because of coordination

If u don't wanna  share it... maybe i should share your full code?  :challenge_accepted:

Anyway , here is two solution for your problem.:

- 1 -
[shcode=cpp]
{$CLEO .cs}
0000:
 
 
REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 
 
0B34: "Dialog" @Show
 
WHILE TRUE
   WAIT 0
 
IF
23@ == TRUE
THEN  
   0AC6: 16@ = label @TEXT offset  
   0B3B: samp show_dialog id 1000 caption "Servers" text 16@ button_1 "OK" button_2 "CLOSE" style 2  
   23@ = FALSE
END
 
IF 
0B3C: samp is_dialog_responded id 1000 button 17@ list_item 18@ input_text 0
THEN
 
 
IF 
17@ == 1 // OK button
THEN
   IF 
   18@ == 0
   THEN 
       22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
       Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [SUPER SIMPLE CODE]{FFFFFF} | nurodytas tavo MiniMap'e." -1
       repeat
       wait 0
       until 00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 radius 0.4 0.4 on_foot 
       IF
       00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 radius 0.4 0.4 on_foot /// ON FOOT NOT NEED Z{GROUND} POS...
       THEN
           wait 100
           Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [SUPER SIMPLE CODE]{FFFFFF} | You just now reached 'SUPER SIMPLE CODE' point!." -1
           Marker.Disable(22@)
       END
   END
END
 
END /// END 0B3C: samp is_dialog_responded id 1000 button 17@ list_item 18@ input_text 0

    
END /// END WHILE TRUE
 
:TEXT
hex
"{FFFFFF}SUPER SIMPLE CODE 0 " A 
00                         
end
 
:Show
0B12: 23@ = 23@ XOR TRUE 
 
0B43:
[/shcode]

- 2 -

[shcode=cpp]
{$CLEO .cs}
0000:
 
 
REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 
 
0B34: "Dialog" @Show
 
WHILE TRUE
   WAIT 0
 
IF
23@ == TRUE
THEN  
   0AC6: 16@ = label @TEXT offset  
   0B3B: samp show_dialog id 1000 caption "Servers" text 16@ button_1 "OK" button_2 "CLOSE" style 2  
   23@ = FALSE
END
 
IF 
0B3C: samp is_dialog_responded id 1000 button 17@ list_item 18@ input_text 0
THEN
 
 
IF 
17@ == 1 // OK button
THEN
   IF 
   18@ == 0
   THEN 
       22@ = Marker.CreateIconAndSphere(41, -2431.7334,-1619.9863,526.5435)
       Chatmsg "{FFFFFF}* Pasiekimas{FF0000} [SUPER SIMPLE CODE]{FFFFFF} | nurodytas tavo MiniMap'e." -1
   END
END
 
END /// END 0B3C: samp is_dialog_responded id 1000 button 17@ list_item 18@ input_text 0

//////// Dissable SUPER SIMPLE CODE
IF
00ED: actor $PLAYER_ACTOR 0 near_point -2431.7334 -1619.9863 radius 0.4 0.4 on_foot /// ON FOOT NOT NEED Z{GROUND} POS...
THEN
    wait 100
    Marker.Disable(22@)
END
//////// Dissable end
    
END /// END WHILE TRUE
 
:TEXT
hex
"{FFFFFF}SUPER SIMPLE CODE 0 " A 
00                         
end
 
:Show
0B12: 23@ = 23@ XOR TRUE 
0B43:
[/shcode]



Listen this and relax little :D
https://www.youtube.com/watch?v=5r_CtgsCVrs
 
Status
Not open for further replies.
Top