Need some help - 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: Need some help (
/showthread.php?tid=277764)
Need some help -
zombieking - 19.08.2011
Ok so I have this code:
pawn Код:
ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_INPUT,"Log in","This account is registered. Please enter the password you entered at registering to log in","Log in","Cancel");
return 1;
And it give me this error:
Код:
D:\sv2\pawno\ascript.pwn(311) : error 017: undefined symbol "LOGIN"
Re: Need some help -
Kingunit - 19.08.2011
Define it in your script.
At the top:
Re: Need some help -
zombieking - 19.08.2011
Код:
D:\sv2\pawno\ascript.pwn(312) : error 029: invalid expression, assumed zero
D:\sv2\pawno\ascript.pwn(312) : warning 215: expression has no effect
D:\sv2\pawno\ascript.pwn(312) : warning 215: expression has no effect
D:\sv2\pawno\ascript.pwn(312) : warning 215: expression has no effect
D:\sv2\pawno\ascript.pwn(312) : warning 215: expression has no effect
D:\sv2\pawno\ascript.pwn(312) : warning 215: expression has no effect
D:\sv2\pawno\ascript.pwn(312) : error 001: expected token: ";", but found ")"
D:\sv2\pawno\ascript.pwn(312) : error 029: invalid expression, assumed zero
D:\sv2\pawno\ascript.pwn(312) : fatal error 107: too many error messages on one line
Re: Need some help -
Kingunit - 19.08.2011
Show line 312
Re: Need some help -
zombieking - 19.08.2011
pawn Код:
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Log in","This account is registered. Please enter the password you entered at registering to log in","Log in","Cancel");
<<<< that is line 312 that with showplayerdialog
On top of script I have:
Re: Need some help -
Kingunit - 19.08.2011
You sure you defined it correctly?
Seems you forget the '#'.
But why you changed "LOGIN" to "DIALOG_LOGIN" now you need to change it at other code parts I think.
Re: Need some help -
zombieking - 19.08.2011
No its #define DIALOG_LOGIN at the top of script that was a typo in the post , and yes i changed all from LOGIN to DIALOG_LOGIN
Re: Need some help -
Coffeemonster - 19.08.2011
You should also define a dialog ID for the #define LOGIN, like #define LOGIN 1
Re: Need some help -
zombieking - 19.08.2011
Quote:
Originally Posted by NiZ
You should also define a dialog ID for the #define LOGIN, like #define LOGIN 1
|
THX IT WORKS
Re: Need some help -
Kingunit - 19.08.2011
Aah I see the guy here above fixed it