Jump to content
  • 0

Problema /help


[XSS]Skull

Question

3 answers to this question

Recommended Posts

Hmm. Cred ca la ondialog response ai asa :

if ( dialogid == dialoguidtau )

{

    if ( listitem == 1 )

  {

admin cmds

  }

............................................

Ei bine, ele trebuie sa inceapa de la 0.

if ( listitem == 0) if (listitem == 1) ..pana la cat ai.

]

WTF?????????????????????? nu era 1 nici 0 era 3 =)))) oricum mersi mult :D

APP mai am o problema uite:

if ( dialogid == dialoguidtau )
{
    if ( listitem == 1 )
   { 
admin cmds
   }
trebuie sa fie
i
if ( dialogid == dialoguidtau )
{
if (response)
}
    if ( listitem == 0 )
   { 
admin cmds
   }

sau cv de genu dar trebuie cu if (response) daca nu cand dai cancel iti da prima varianta adik ti-o aplica gen: pe prima varianta ai /cmds si dai Close ... cand dai close iti apare cmds

skulls11.png
Link to comment
Share on other sites

Sau... mai simplu...

if(dialogid == ID) //Unde ID = ID-ul de la Dialogul tau
{
    if(response)
    {
        switch(listitem)
        {
            case 0: CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/cmds");
            case 1: CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/teles");
            case 2: CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/credits"); 
            //etc
        }
    }
}

3r4AlPA.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.