Jump to content

thedeadly

Membru
  • Posts

    2
  • Joined

  • Last visited

Posts posted by thedeadly

  1. 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, 1@, 2@, 0)
        then
            if and 
            1@ == 1   // 1@ reprezinta dialogul, nu se modifica
            2@ == 0   // 2@ reprezinta itemul din lista. numaratoarea pleaca de la 0
            then 
            0af8: "cmd" 0xff0066ff // 0af8: = chatmsg
            end
            if and
            1@ == 1
            2@ == 1
            then
            0af0: "cmd 2?" 0xff00ff00
            end
        end
    end

    :cmd_0
    wait 0
    goto @cmd_0

    :label
    0AC6: 17@ = label @dialog_list offset
    SAMP.ShowDialog(1111, "CMD", 17@, "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

  2. 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()"

×
×
  • 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.