SA-MP Forums Archive
Help me please - 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: Help me please (/showthread.php?tid=475356)



Help me please - EthanMason - 12.11.2013

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


Re: Help me please - Loot - 12.11.2013

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));



Re: Help me please - Lynn - 12.11.2013

EDIT: Above code should be the fix


Re : Re: Help me please - EthanMason - 12.11.2013

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));