Jump to content
  • 0

Ajutor va rog


ionchyAdv

Question

5 answers to this question

Recommended Posts

  • 0

Deci dupa cum inteleg tu doresti ca sa iti apara nu in chat,dar in dialog si uite metoda care poate sa te ajute

:dialog
0AC6: [email protected] = label @dialog_list offset
0B3B: samp show_dialog id 1000 caption "Dialog Test Title " text [email protected] button_1 "Select" button_2 "Exit" style 2      
SAMP.CmdRet()
  • Like 1
[ Anti Flood Pack ] / Click [ Pugb SA:MP ] Click / [ TD Autorizatie ] Click
[ Created dm zone ] Click / [ Salvare vreme si timp ] Click [ Statistica a serverului ] Click
[ Sistema duel ] Click [ TD Registrare/Autorizatie ] Click [ Sistema kill/killed by ] Click
[ Sistema data si ora Click /  [ GM Anticheat ] Click   /  [ Schimbarea mersului ] Click
[ Save Camera ] Click  [ Sitema Concurs ] Click [ Projector pentru elicopter ] Click /
[ DM Zona ] Click / [ Folosirea textelor lungi ] Click / [Khain RPG] Click  / Antisobeit Click
Link to comment
Share on other sites

  • 0
20 hours ago, #Yudin said:

Deci dupa cum inteleg tu doresti ca sa iti apara nu in chat,dar in dialog si uite metoda care poate sa te ajute

:dialog
0AC6: [email protected] = label @dialog_list offset
0B3B: samp show_dialog id 1000 caption "Dialog Test Title " text [email protected] button_1 "Select" button_2 "Exit" style 2      
SAMP.CmdRet()

Am dialog pe lista dar cand vreau sa deschid un lucru din lista aia de dialog sa zicem o sectiune vreau sa mi apara pe dialog nu pe chat ma intelegi?

Link to comment
Share on other sites

  • 0
On 3/7/2019 at 6:03 PM, ionchyAdv said:

Am dialog pe lista dar cand vreau sa deschid un lucru din lista aia de dialog sa zicem o sectiune vreau sa mi apara pe dialog nu pe chat ma intelegi?

Mai bine foloseai sintaxa "SAMP.ShowDialog()"

Link to comment
Share on other sites

  • 0
On 3/6/2019 at 9:06 PM, ionchyAdv said:

PS: Asta e in Sanny Builder

{$CLEO .cs}

0662: printstring "cmd"
thread "cmd"
wait 2750

0b34: "dialog" @label

chatmsg "CMD creat de X pentru Y" 0xFF0066ff // 0xFF -> culoare html

while true
wait 0

    if SAMP.DialogRespond(1111, [email protected], [email protected], 0)
    then
        if and 
        [email protected] == 1   // [email protected] reprezinta dialogul, nu se modifica
        [email protected] == 0   // [email protected] reprezinta itemul din lista. numaratoarea pleaca de la 0
        then 
        0af8: "cmd" 0xff0066ff // 0af8: = chatmsg
        end
        if and
        [email protected] == 1
        [email protected] == 1
        then
        0af0: "cmd 2?" 0xff00ff00
        end
    end
end

:cmd_0
wait 0
goto @cmd_0

:label
0AC6: [email protected] = label @dialog_list offset
SAMP.ShowDialog(1111, "CMD", [email protected], "ok", "cancel", 2) // 2 = dialog cu derulare/selectiv
SAMP.CmdRet()

:dialog_list
hex
"CMD" A // A reprezinta spatiere intre linii
"CMD" 0 // 0 reprezinta sfarsitul dialogului
end
SAMP.CmdRet()

ret 0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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. For more details you can also review our Terms of Use and Privacy Policy.