Curties
Новичок
Суть в чем. Недавно заинтересовал Pawno. Решил попробывать себя в этом.
При компилировании выдает ошибки.
---------- Сообщение добавлено в 18:35 ---------- Предыдущее сообщение добавлено в 18:25 ----------
Ошибки в строках
При компилировании выдает ошибки.
PHP:
D:\ñåðâåð\gamemodes\Untitled.pwn(282) : warning 217: loose indentation
D:\ñåðâåð\gamemodes\Untitled.pwn(320) : warning 217: loose indentation
D:\ñåðâåð\gamemodes\Untitled.pwn(323) : warning 217: loose indentation
D:\ñåðâåð\gamemodes\Untitled.pwn(323) : error 029: invalid expression, assumed zero
D:\ñåðâåð\gamemodes\Untitled.pwn(323) : error 004: function "OnPlayerText" is not implemented
D:\ñåðâåð\gamemodes\Untitled.pwn(333) : warning 225: unreachable code
D:\ñåðâåð\gamemodes\Untitled.pwn(333) : error 029: invalid expression, assumed zero
D:\ñåðâåð\gamemodes\Untitled.pwn(333) : error 004: function "SaveAccounts" is not implemented
D:\ñåðâåð\gamemodes\Untitled.pwn(353) : error 030: compound statement not closed at the end of file (started at line 246)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
---------- Сообщение добавлено в 18:35 ---------- Предыдущее сообщение добавлено в 18:25 ----------
Ошибки в строках
PHP:
public OnPlayerText(playerid, text[]);
{
if(logged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, "Ñåðâåð: ×òîáû ïèñàòü â ÷àò àâòîðèçèðóéòåñü!");
return 0;
}
PHP:
public SaveAccounts(playerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new PlayerName[MAX_PLAYER_NAME], account[128];
GetPlayerName(i,PlayerName,sizeof(PlayerName));
format(account,sizeof(account), "users/%s.ini", PlayerName);
new iniFile = ini_openFile(account);
ini_setInteger(iniFile, "Money", GetPlayerMoney(i));
ini_setInteger(iniFile,"Kills", PlayerInfo[i][Kills]);
ini_setInteger(iniFile,"Deaths", PlayerInfo[i][Deaths]);
GetPlayerHealth(i,PlayerInfo[i][pHeal]);
ini_setFloat(iniFile, "Heal", PlayerInfo[i][pHeal]);
GetPlayerArmour(i,PlayerInfo[i][pArmour]);
ini_setFloat(iniFile, "Armour", PlayerInfo[i][pArmour]);
ini_closeFile(iniFile);
SendClientMessage(i, COLOR_WHITE, "Àêêàóíò ñîõðàíåí");// äëÿ òåñòà äîáàâèì
}
return 1;
}
