Help me please
#1

Код:
public OnPlayerConnect(playerid)
{
   	new name[MAX_PLAYER_NAME]; 
    GetPlayerName(playerid,name,sizeof(name)); 
    if(fexist(Path(playerid))) 
    {
        INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid); 
        INI_Parsefile. new INI:File = INI_Open(UserPath(playerid));
        new INI:File = INI_Open(UserPath(playerid));
        if(PlayerInfo[playerid][pBanned] == 1) return Ban(playerid); 
        else
		{
		ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Login","Welcome back. This account is registered. \nInsert your password to login to your account","Login","Quit");
        }
        return 1;
    }
    else 
    {
        ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.","Register","Quit");
        return 1;
    }
	return 1;
}
Recieving this errors

Код:
C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : warning 215: expression has no effect
C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : error 001: expected token: ";", but found ")"
C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : error 029: invalid expression, assumed zero
C:\Users\dell\Desktop\Script\gamemodes\newroleplayserver.pwn(102) : fatal error 107: too many error messages on one line

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


4 Errors.
Help me please Will +rep whoever help me out!
Reply
#2

Issue is below.
pawn Код:
INI_Parsefile. new INI:File = INI_Open(UserPath(playerid));
new INI:File = INI_Open(UserPath(playerid));
Change to:
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
Reply
#3

EDIT: Above code should be the fix
Reply
#4

Quote:
Originally Posted by Loot
Посмотреть сообщение
Issue is below.
pawn Код:
INI_Parsefile. new INI:File = INI_Open(UserPath(playerid));
new INI:File = INI_Open(UserPath(playerid));
Change to:
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
Still the same Errors appearing after removing those lines hmm errors in line 102 which is
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)