Jump to content

[CLEO] comanda cu text wait


Squiz TTC
 Share

Recommended Posts

Salutare doresc sa fac o comanda cu wait dar nu reusesc sa o finalizez

 

comanda imi da doar primul mesaj al 2-lea nu vrea, la fel vreau daca se poate sa fac o comanda sa scrie de 3 ori dar la 3secunde diferenta. nu merge while simplu.,

:cmd_fvrr
 SAMP.IsCommandTyped(20@)
   0AF9: samp say_msg "/C Atentie urmeaza [/cvr] automat in 10 secunde"
20@ = 1
    SAMP.CmdRet()
while true
wait 0
if 20@ == 1
then wait 3000 and 
0AF9: samp say_msg  "/cvr" 20@
 20@ == 0
 end

Link to comment
Share on other sites

:cmd_fvrr

20@ = 1
 SAMP.IsCommandTyped(20@)
   0AF9: samp say_msg "/C Atentie urmeaza [/cvr] automat in 10 secunde"
    SAMP.CmdRet()
while true
wait 0
if 20@ == 1
then wait 3000 and 
0AF9: samp say_msg  "/cvr" 20@
 20@ = 0
 end

 

SAU

 

 

:cmd_fvrr

$_manevra = 1
 SAMP.IsCommandTyped($manevra)
   0AF9: samp say_msg "/C Atentie urmeaza [/cvr] automat in 10 secunde"
    SAMP.CmdRet()
while true
wait 0
if $_manevra == 1
then wait 3000 and 
0AF9: samp say_msg  "/cvr" + $_manevra (DACA Nu merge scoate + ul, asta vine din alte limbaje)
$_manevra = 0
 end

 

vezi ca ai tendinta sa asignezi variabile cu ==, trebuie doar 1, in if daca === inseamna strict =, similar si cu ==

 

 

 

EDIT: Am citit ce ai scris, din cauza la debounce... Tu ai pus 2 egaluri cand ai asignat variablul poate asta a facut figuri si a oprit codul.

Edited by Gabihard
Link to comment
Share on other sites

nu stiu pentru ce ii and ala acolo, la say nu stiu de ce ai pus 20@ dupa, nu ai nici un %s sau %d in comanda.

 

{$CLEO .cs}

0000: NOP 

repeat
wait 50 
until SAMP.Available                
0b34: "fvr" @fvr
chatmsg "mesaj de intrare in joc" 0xFFFFB870  

        

while true
wait 0

    if 20@ == 1
    then
        wait 10000
        say "/cvr"
        20@ = 0
    end

end

:fvr
0AF9: samp say_msg "/C Atentie urmeaza [/cvr] automat in 10 secunde"
20@ = 1
SAMP.CmdRet()

 

Link to comment
Share on other sites

34 minutes ago, Nic said:

{$CLEO .cs} 0000: NOP repeat wait 50 until SAMP.Available 0b34: "fvr" @fvr chatmsg "mesaj de intrare in joc" 0xFFFFB870 while true wait 0 if 20@ == 1 then wait 10000 say "/cvr" 20@ = 0 end  end :fvr 0AF9: samp say_msg "/C Atentie urmeaza [/cvr] automat in 10 secunde" 20@ = 1 SAMP.CmdRet()

Am incercat si nu recunoaste comanda in game

Am incercat si cu:: 

 

 

0B34: samp register_client_command "cvrx" to_label @cmd_cvrx 
//chatmsg "mesaj de intrare in joc" 0xFFFFB870  
            while true
wait 0
                      if 20@ == 1
    then
        wait 10000
        say "/cvr"
        20@ = 0
    end
       end
       :cmd_cvrx

SAMP.IsCommandTyped(20@)
0AF9: samp say_msg "/c Atentie urmeaza [/cvr] automat in 10 secunde"
20@ = 1
SAMP.CmdRet()

Link to comment
Share on other sites

@Squiz TTCesti sigur ca ai compilat modu care trebe si ca l ai bagat in joc? Imi merge perfect:

 

{$CLEO .cs}

0000: NOP 

repeat
wait 50 
until SAMP.Available                
0b34: ".fvr" @fvr
chatmsg "mesaj de intrare in joc" 0xFFFFB870  

        

while true
wait 0

    if 20@ == 1
    then
        wait 10000
        say "/cvr"
        20@ = 0
    end

end

:fvr
0AF9: samp say_msg "/C Atentie urmeaza [/cvr] automat in 10 secunde"
20@ = 1
SAMP.CmdRet()

 

image.png

Edited by Nic
Link to comment
Share on other sites

2 hours ago, Nic said:

while true wait 0 if 20@ == 1 then wait 10000 say "/cvr" 20@ = 0 end end

Trebuia sa pun variabila sus in antetul paginii inainte de comenzi 

 Dar nu le pot combina,

Îmi inchide comanda  adăugată cu while, da doar mesajul.

 

Separat l am testat merge bine.. nu reușesc sa le combin cu modul meu

 

 

Edited by Squiz TTC
Link to comment
Share on other sites

  • Nic locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.