[Help] error 033 : array must be indexed [Very Hard to solve]
#1

Type of gamemode : cynix tdm <from scratch>
Errors :
Код:
C:\Users\Snjezana\Desktop\Ivanovo (nemoj brisat)\Cynix DM\gamemodes\CDM.pwn(583) : error 033: array must be indexed (variable "pDeaths")
C:\Users\Snjezana\Desktop\Ivanovo (nemoj brisat)\Cynix DM\gamemodes\CDM.pwn(584) : error 033: array must be indexed (variable "pKillz")
C:\Users\Snjezana\Desktop\Ivanovo (nemoj brisat)\Cynix DM\gamemodes\CDM.pwn(586) : error 033: array must be indexed (variable "PlayerVip")
C:\Users\Snjezana\Desktop\Ivanovo (nemoj brisat)\Cynix DM\gamemodes\CDM.pwn(1701) : error 033: array must be indexed (variable "PlayerVip")
C:\Users\Snjezana\Desktop\Ivanovo (nemoj brisat)\Cynix DM\gamemodes\CDM.pwn(1717) : error 033: array must be indexed (variable "PlayerVip")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
My enum pinfo :

Код:
enum pInfo
{
 * *pAdminLevel,
 * *pNovac, // it means pMoney
 * *pAFK,
 * *pLevel,
};
my OnPlayerDisconnect :

Код:
public OnPlayerDisconnect(playerid, reason)
{
 * *new name[MAX_PLAYER_NAME], file[256];
 * *GetPlayerName(playerid, name, sizeof(name));
 * *format(file, sizeof(file), SERVER_USER_FILE, name);
 * *if(gPlayerLogged[playerid] == 1)
 * *{
 * * * *dini_IntSet(file, "Level", PlayerInfo[playerid][pLevel]);
 * * * *dini_IntSet(file, "Novac", PlayerInfo[playerid][pNovac]);
 * * * *dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
 * * * *dini_IntSet(file, "AFK", PlayerInfo[playerid][pAFK]);
 * * * *dini_IntSet(file, "Ubojstava", PlayerInfo[playerid][pKillz]);
 * * * *dini_IntSet(file, "Smrti",PlayerInfo[playerid][pDeaths]);
 * * * *dini_IntSet(file, "VIPLevel",PlayerInfo[playerid][PlayerVip]);
 * *}
 * *gPlayerLogged[playerid] = 0;
	return 1;
}
So,how can I solve these errors?
If you need something else to help me,i will post.
I asked on 2 sa:mp forums,and they didn't know how to or didn't wanted to help me to solve the errors.

And ofcourse,sorry for my bad english..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)