Various errors with registration system
#1

I made a registration system by following this tutorial(https://sampforum.blast.hk/showthread.php?tid=273088) and when I completed it, it gave me various errors revolving around line 98.
Errors:
Код:
001	DystopianRoleplay	98	"expected token: "-string end-", but found "-identifier-""
215	DystopianRoleplay	98	"expression has no effect"
001	DystopianRoleplay	98	"expected token: ";", but found "-string-""
215	DystopianRoleplay	98	"expression has no effect"
001	DystopianRoleplay	98	"expected token: "-string end-", but found "-identifier-""
107	DystopianRoleplay	98	"too many error messages on one line"
Line 98:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password to login.","Login","Quit");
Reply
#2

You cannot like put color_white in it remove them you need to do like this
{color code here}Login
Reply
#3

Show us the define COLOR_WHITE...
Reply
#4

pawn Код:
#define COL_WHITE           "{FFFFFF}"
//put ^ line below your COLOR_WHITE define.
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password to login.","Login","Quit");
Reply
#5

Why can't you try this
Код:
#define COL_WHITE "{FFFFFF}"
//
new Lstr[128];
format(Lstr,128,"%sType your password to login.",COL_WHITE);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login",Lstr,"Login","Quit");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)