[PI] Vanya
Ученик
Вот ошибка:
Строка с ошибкой:
Вся строка(половина):
PHP:
C:\Users\Admin\Desktop\Lyrical DM new - Копія\gamemodes\LyricalDM.pwn(610) : error 001: expected token: ";", but found "-identifier-"
PHP:
SetPlayerHealth(playerid, PlayerInfo[playerid][pHeal]);
PHP:
new PlayerName[MAX_PLAYER_NAME], password[64];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
new account[128];
format(account,sizeof(account),"users/%s.ini",PlayerName);
if(IsPlayerNPC(playerid))return 1;
new iniFile = ini_openFile(account);
ini_getString(iniFile, "Пароль",password); // Узнаём пароль аккаунта.
if(!strcmp(inputtext, password, true))
{
ini_getInteger(iniFile, "Money", PlayerInfo[playerid][pMoney]); // Записываем данные в переменную
ini_getFloat(iniFile, "Heal", PlayerInfo[playerid][pHeal]);
ini_getFloat(iniFile, "Armour", PlayerInfo[playerid][pArmour]);
ini_getInteger(iniFile,"Kills", PlayerInfo[playerid][Kills]);
ini_getInteger(iniFile,"Deaths", PlayerInfo[playerid][Deaths]);
ini_getInteger(iniFile, "Admin", PlayerInfo[playerid][pAdmin])
SetPlayerHealth(playerid, PlayerInfo[playerid][pHeal]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
ini_closeFile(iniFile);
SpawnPlayer(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Сервер: Пароль неверный");
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Авторизация", "Авторизуйся ты наконец:", "Ок", "");
return 1;
}
}
else //Клавиша Esc
