04.05.2016, 12:59
Hi Guys I Back
OK NOW !!
When i try to make my own Dialog of Register / Login its failed and i try many times to fix it but i can i don't know why
I Make Folder Name " Users " In Scirptfile but i need to know Now how to Fix that bugs? I Give you the lines it
Line 81 + 82:
line 349 + 352 + 356
Line 360 + 361
line 594
line 596
line 614
line 616
617
OK NOW !!
When i try to make my own Dialog of Register / Login its failed and i try many times to fix it but i can i don't know why
PHP код:
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"
PHP код:
new PlayerInfo[MAX_PLAYERS][pInfo];
PHP код:
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");
}
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
return 1;
}
PHP код:
new INI:File = INI_Open(UserPath(playerid));
PHP код:
INI_WriteInt(File,"Password",udb_hash(inputtext));
PHP код:
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
PHP код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
PHP код:
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);