Y_ini Register/Login System errors +Rep
#1

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

Which is 518 code?
Reply
#3

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

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

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 !!
Reply
#6

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

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

pawn Код:
#define COLOR_WHITE 0xFFFFFFFF
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)