[SOLVEDI Got This Error
#1

I Want To Make My Custom Login And Register System..But I Got This Error

Код:
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : error 029: invalid expression, assumed zero
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : error 001: expected token: ";", but found ")"
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : error 029: invalid expression, assumed zero
C:\Users\Armageddon\Desktop\Samp Server\gamemodes\Gamemode.pwn(107) : fatal error 107: too many error messages on one line
Here's The Code

Код:
ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.","Register","Quit");
The Whole Code

Код:
public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME], string[256];
	GetPlayerName( playerid, pname, sizeof(pname));
	 if(fexist(Path(playerid))) 
    {
        INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid); //Will load user's data using INI_Parsefile.
        ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Please Login","Welcome back . This Account Is {FF0000}Registered. \n{FFFFFF}Insert Your Password To Login To Your Account","Login","Cancel");/*A dialog with input style will appear so you can insert your password to login.*/
    }
    else //If the connected user is not registered,
    {//then we will 'force' him to register :)
        ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.","Register","Quit");
		return 1;
  	}
	format(string, sizeof(string), "Welcome To {66CCFF}Cyber {FFFF99}Malaysian {99FF66}Army,  {FF6600}%s{FFFFFF}", pname);
 	SendClientMessage(playerid, 0xFFFFFFFF, string);
	return 1;
}
Reply
#2

and i defined my dialog
Reply
#3

Sorry The Problem Solved
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)