14.12.2016, 01:01
Hello. I need another help :P.
Heres my code.
ERROR:
Thanks for help
Heres my code.
PHP код:
new lootCount;
enum hospinfo
{
HospitalID,
Float:xHos,
Float:yHos,
Float:zHos,
HosSlot1 = 1,
HosSlot2 = 1,
HosSlot3 = 1,
HosSlot4 = 1,
HosSlot5 = 1,
HosSlot6 = 1
}
new Medikament[MAX_LOOTING][hospinfo];
PHP код:
if(newkeys == 1024)
{
if(IsPlayerInRangeOfPoint(playerid,3.5,Medikament[GetMedikID(playerid)][xHos],Medikament[GetMedikID(playerid)][yHos],Medikament[GetMedikID(playerid)][zHos]))
{
HospitalBoxDispl(playerid);
}
}
PHP код:
D:\1-ADMIN-ar cashaloo\Desktop\DayZ\gamemodes\dayz1.pwn(8330) : error 032: array index out of bounds (variable "Medikament")
D:\1-ADMIN-ar cashaloo\Desktop\DayZ\gamemodes\dayz1.pwn(26392) : error 032: array index out of bounds (variable "Medikament")
D:\1-ADMIN-ar cashaloo\Desktop\DayZ\gamemodes\dayz1.pwn(26446) : error 032: array index out of bounds (variable "Medikament")
D:\1-ADMIN-ar cashaloo\Desktop\DayZ\gamemodes\dayz1.pwn(26447) : error 032: array index out of bounds (variable "Medikament")