SA-MP Forums Archive
Getting Errors Reg 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: Getting Errors Reg system (/showthread.php?tid=442269)



Getting Errors Reg system - San1 - 06.06.2013

Код:
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



Re: Getting Errors Reg system - dEcooR - 06.06.2013

Wtf what is the line 88


Re: Getting Errors Reg system - Facerafter - 06.06.2013

Show us line 88


Re: Getting Errors Reg system - San1 - 06.06.2013

Fixed nvm now but go help my other thread