Need some help
#1

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"
Reply
#2

Define it in your script.
At the top:

pawn Код:
#define LOGIN
Reply
#3

Код:
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
Reply
#4

Show line 312
Reply
#5

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:
pawn Код:
define DIALOG_LOGIN
Reply
#6

You sure you defined it correctly?
pawn Код:
#define DIALOG_LOGIN
Seems you forget the '#'.

But why you changed "LOGIN" to "DIALOG_LOGIN" now you need to change it at other code parts I think.
Reply
#7

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
Reply
#8

You should also define a dialog ID for the #define LOGIN, like #define LOGIN 1
Reply
#9

Quote:
Originally Posted by NiZ
Посмотреть сообщение
You should also define a dialog ID for the #define LOGIN, like #define LOGIN 1
THX IT WORKS
Reply
#10

Aah I see the guy here above fixed it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)