SA-MP Forums Archive
Y_ini Register/Login System errors +Rep - 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: Y_ini Register/Login System errors +Rep (/showthread.php?tid=578620)



Y_ini Register/Login System errors +Rep - ItzRbj - 21.06.2015

script
Код:
public OnPlayerConnect(playerid)
{
	if(fexist(UserPath(playerid)))
	{
		INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  		ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.","Login","Quit");
	}
	else
	{
 		ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering...",""COLOR_WHITE"Type your password below to register a new account.","Register","Quit");
	}

	return 1;
}
errors/warnings

Код:
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : warning 215: expression has no effect
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : warning 215: expression has no effect
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : error 001: expected token: ";", but found "-string-"
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Y_ini Register/Login System errors +Rep - kyriakos587 - 21.06.2015

Which is 518 code?


Re: Y_ini Register/Login System errors +Rep - ItzRbj - 21.06.2015

Quote:
Originally Posted by kyriakos587
Посмотреть сообщение
Which is 518 code?
Код:
 ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.","Login","Quit");
}
This


Re: Y_ini Register/Login System errors +Rep - kyriakos587 - 21.06.2015

Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"COLOR_WHITE"Login","COLOR_WHITE"Type your password below to login.","Login","Quit");
}
Try this


Re: Y_ini Register/Login System errors +Rep - ItzRbj - 21.06.2015

Quote:
Originally Posted by kyriakos587
Посмотреть сообщение
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"COLOR_WHITE"Login","COLOR_WHITE"Type your password below to login.","Login","Quit");
}
Try this
Код:
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : warning 215: expression has no effect
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : warning 215: expression has no effect
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : error 001: expected token: ";", but found "-string-"
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
still !!


Re: Y_ini Register/Login System errors +Rep - Dusan01 - 21.06.2015

Try this:
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{FFFFFF}Login","{FFFFFF}Type your password below to login.","Login","Quit");



Re: Y_ini Register/Login System errors +Rep - UltraScripter - 21.06.2015

make sure you defined COLOR_WHITE
like this
pawn Код:
#define COLOR_WHITE {FFFFFF}
not like this

pawn Код:
#define COLOR_WHITE 0xFFFFFFFF