Dialogs Problem
#1

I'm having a problem when I use two dialogs. When I put this on my script (https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog), I'm having errors but when I put that as a filterscript, I'm having a problem on Login/Register system(dialog). When it's only (https://sampforum.blast.hk/showthread.php?tid=273088), I'm having no problems, its just that when I use the one from wiki and that 2 dialogs is running at the same time.
Reply
#2

Please post your code and if you are getting errors which errors you are getting.
Reply
#3

Quote:
Originally Posted by MrSurfur1
Посмотреть сообщение
... 2 dialogs is running at the same time.
Hmm, this must be because your dialog id mixed with another dialog id.
Reply
#4

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Menu", "Weapons\nVehicle", "Ok", "Cancel");
    return 1;
}

I put this after the login/register system
pawn Код:
if(response)
    {
    switch(dialogid)
        {
        case 1:
            {
            switch(listitem)
            {
                case 0:
                {
                    GivePlayerWeapon(playerid, 16, 500);
                    GivePlayerWeapon(playerid, 34, 500);
                }
                case 1:
                {
                 PutPlayerInVehicle(playerid, 400, 0);
                }
            }
            }
    }
    }
    return 1;
}
I compiled and no errors and no warnings but when I try to login, invalid password meaning it's not working properly so I can't spawn.
Reply
#5

Post the code that gives the invalid password, none of the code you posted seems to have anything to do with the problem you are having.
Reply
#6

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Hmm, this must be because your dialog id mixed with another dialog id.
How to avoid dialog to be mixed up?
Reply
#7

can someone help me in here?
Reply
#8

Quote:
Originally Posted by djcabo
Посмотреть сообщение
can someone help me in here?
Please start a new topic stating your problem.
Reply
#9

Fixed! Thanks for the replies!

I fixed it by my self by reading the wiki ^^
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)