Dialogs Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialogs Problem (
/showthread.php?tid=347500)
Dialogs Problem -
StrangeLove - 02.06.2012
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.
Re: Dialogs Problem -
Scott - 02.06.2012
Please post your code and if you are getting errors which errors you are getting.
Re: Dialogs Problem -
newbienoob - 02.06.2012
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.
Re: Dialogs Problem -
StrangeLove - 02.06.2012
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.
Re: Dialogs Problem -
Scott - 02.06.2012
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.
Re: Dialogs Problem -
StrangeLove - 02.06.2012
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?
Re: Dialogs Problem -
djcabo - 02.06.2012
can someone help me in here?
Re: Dialogs Problem -
Scott - 02.06.2012
Quote:
Originally Posted by djcabo
can someone help me in here?
|
Please start a new topic stating your problem.
Re: Dialogs Problem -
StrangeLove - 02.06.2012
Fixed! Thanks for the replies!
I fixed it by my self by reading the wiki ^^