Getting Errors Reg system
#1

Код:
public OnPlayerConnect(playerid)
{
	if(fexist(UserPath(playerid)))
	{
	    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
	    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,COL_WHITE"Login",COL_WHITE"Please enter your password to login.","Login","Quit");
	}
	else
	{
	    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,COL_WHITE"Register",COL_WHITE"Type a password to register your account","Register","Quit");
	}
	return 1;
}
Код:
stock UserPath(playerid)
{
	new string[128],playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid,playername,sizeof(playername));
	format(string,sizeof(string),PATH,playername);
	return string;
}
Код:
#define PATH "/Users/%s.ini"
Код:
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : error 035: argument type mismatch (argument 4)
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : error 001: expected token: ";", but found "-string-"
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : warning 215: expression has no effect
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Adrian\My Documents\World Wide Roleplay\gamemodes\WW-RP.pwn(88) : fatal error 107: too many error messages on one line
Reply
#2

Wtf what is the line 88
Reply
#3

Show us line 88
Reply
#4

Fixed nvm now but go help my other thread
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)