login with y_ini system & dudb&dutils error
#1

Код:
E:\bestgamemode.pwn(945) : error 017: undefined symbol "pLogged"
E:\bestgamemode.pwn(945) : warning 215: expression has no effect
E:\bestgamemode.pwn(945) : error 001: expected token: ";", but found "]"
E:\bestgamemode.pwn(945) : error 029: invalid expression, assumed zero
E:\bestgamemode.pwn(945) : fatal error 107: too many error messages on one line

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


4 Errors.
Heres the error line

Код:
public OnPlayerConnect(playerid)
{
    pLogged[playerid] = 1;
    #if defined AUTOLOGIN
        new tmpIP[16];
        GetPlayerIp(playerid,tmpIP,sizeof(tmpIP)); //Getting IP
    #endif
    if(fexist(PlayerPath(playerid))) {
        INI_ParseFile(PlayerPath(playerid), "UserDataLoad_%s", .bExtra = true, .extra = playerid); //Calling loading callback
        #if defined AUTOLOGIN
            if(strcmp(tmpIP,pIP[playerid],true) == 0) { //Checking if the IPs match
                pLogged[playerid] = 1;
                SetPlayerScore(playerid,pInfo[playerid][Score]);
                GivePlayerMoney(playerid,pInfo[playerid][Cash]);
                SendClientMessage(playerid,lime,"You've been auto-logged in. [IP match]");
                return 1;
            }
        #endif
        ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Please enter your password below.","Login","Leave");
    } else {
        ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register","Please register by entering a password below.","Register","Leave");
    }
    return 1;
}
forward UserDataLoad_data(playerid,name[],value[]);

public UserDataLoad_data(playerid,name[],value[]) { //This loads the settings from the INI file
    INI_Int("Pass",pInfo[playerid][Pass]);
    INI_String("IP",pIP[playerid],16);
    INI_Int("Admin",pInfo[playerid][Admin]);
    INI_Int("Cash",pInfo[playerid][Cash]);
    INI_Int("Score",pInfo[playerid][Score]);
    INI_Int("Banned",pInfo[playerid][Banned]);
    return 1;
}
	SendClientMessage(playerid, 0xFFFF00AA,"Welcome to the Server, Enjoy In-Game");
	return 1;
	}
Reply
#2

pawn Код:
new pLogged[MAX_PLAYERS];
Reply
#3

Quote:
Originally Posted by Fat
Посмотреть сообщение
pawn Код:
new pLogged[MAX_PLAYERS];
Код:
E:\bestgamemode.pwn(951) : error 017: undefined symbol "PlayerPath"
E:\bestgamemode.pwn(952) : error 017: undefined symbol "PlayerPath"
E:\bestgamemode.pwn(954) : error 017: undefined symbol "pIP"
E:\bestgamemode.pwn(954) : warning 215: expression has no effect
E:\bestgamemode.pwn(954) : error 001: expected token: ";", but found "]"
E:\bestgamemode.pwn(954) : error 029: invalid expression, assumed zero
E:\bestgamemode.pwn(954) : fatal error 107: too many error messages on one line

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


6 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)