23.05.2013, 01:32
Can someone help me with this error my mate scripted a job. but we both cant fix it.
Код:
error 033: array must be indexed (variable "pJob") error 033: array must be indexed (variable "pJob")
Код:
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Skin",PlayerInfo[playerid][pSkin]);
INI_Int("Level",PlayerInfo[playerid][pLevel]);
INI_Int("Job",PlayerInfo[playerid][pJob]); <----- this coming up with array must be indexed error.
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("SecKey",PlayerInfo[playerid][pSecKey]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Float("FacingAngle",PlayerInfo[playerid][pFacingAngle]);
INI_Float("Health",PlayerInfo[playerid][pHealth]);
INI_Float("Armour",PlayerInfo[playerid][pArmour]);
INI_Float("LastX", PlayerInfo[playerid][pLastX]);
INI_Float("LastY", PlayerInfo[playerid][pLastY]);
INI_Float("LastZ", PlayerInfo[playerid][pLastZ]);
return 1;
}
Код:
CMD:Fertalize(playerid, params[])
{
if(PlayerInfo[playerid][pJob] = 5) <--- this coming up with the same error as the top code.
SendClientMessage(playerid, COLOR_WHITE,"SHHHHHHHH");
return 1;
}


really helpful.
