lvcnr.pwn(81) : error 017: undefined symbol "pInfo"
lvcnr.pwn(81) : error 009: invalid array size (negative, zero or out of bounds)
lvcnr.pwn(349) : error 017: undefined symbol "UserPath"
lvcnr.pwn(352) : error 010: invalid function or declaration
lvcnr.pwn(356) : error 010: invalid function or declaration
lvcnr.pwn(361) : error 017: undefined symbol "pKills"
lvcnr.pwn(362) : error 017: undefined symbol "pDeaths"
lvcnr.pwn(594) : error 017: undefined symbol "UserPath"
lvcnr.pwn(595) : error 017: undefined symbol "udb_hash"
lvcnr.pwn(614) : error 017: undefined symbol "udb_hash"
lvcnr.pwn(616) : error 017: undefined symbol "UserPath"
lvcnr.pwn(617) : error 017: undefined symbol "pCash"
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnPlayerConnect(playerid)
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
return 1;
}
new INI:File = INI_Open(UserPath(playerid));
INI_WriteInt(File,"Password",udb_hash(inputtext));
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths
}
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
return 1;
}
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths,
}
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths
};//here semicolon
public OnPlayerConnect(playerid)
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
} //see this one was what i talking about
else //there is a if statement for this else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
Try adding semicolon
PHP код:
EDIT:Lol i just found that you closed that bracket in onplayerconnect and there is no if statement for else check there PHP код:
|
bug? you mean error? listen to my reply carefully you closed onplayerconnect before else and there is a if statement for checking if player already registered
|