Problems with different dialogs - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problems with different dialogs (
/showthread.php?tid=135683)
Problems with different dialogs -
Jochemd - 21.03.2010
Hello
I use gAdmin as Admin script.It is possible to log in with a dialog in that script. But when I load one of my licensescript I can't login. When I push 'Login' nothing happens. When I unload that license script, everythink works fine.
http://pastebin.com/YCYgLFPu <== License
Regards,
Jochem
Re: Problems with different dialogs -
CAR - 23.04.2010
I also got a problem now.
If I make a Dialog in my login script and a Dialog in my commands script, I can only use the one whose first loaded in the server.cfg
PS: Maybe you think this is an old topic but I think why should I make a new one if this is the same...
Can anyone help us?
Re: Problems with different dialogs -
Babul - 23.04.2010
maybe the dialog-id is the reason: i suspect the licensescript dialog-id==1 causing the failure by responding to another dialog with the same id, use a dialog-id >500 to avoid the admin scripts' dialog id's interferring with your script.
its easier to edit a few lines in your licenseFS instead of changing the whole admin script, so define your id like this:
Код:
#define DialogBasis (1000)
and use
Код:
if dialogid==DialogBasis
instead of
to avoid "collisions" with other scripts using the id 1 too.
Re: Problems with different dialogs -
CAR - 23.04.2010
But I used for login the ids:
223
224
225
And for the commands:
654
655
656
657