SA-MP Forums Archive
Various errors with registration system - 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: Various errors with registration system (/showthread.php?tid=469854)



Various errors with registration system - JohnRazer - 15.10.2013

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");



Re: Various errors with registration system - efrim123 - 15.10.2013

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


Re: Various errors with registration system - xganyx - 15.10.2013

Show us the define COLOR_WHITE...


Re: Various errors with registration system - EiresJason - 15.10.2013

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");



Re: Various errors with registration system - Harish - 15.10.2013

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");