Run time error 4: "Array index out of bounds"
#9

PHP код:
stock ForceDrop(playerid)
{
    new 
Float:XFloat:YFloat:Z;
    
GetPlayerPos(playeridXYZ);
    for(new 
isizeof(ItemInfo); i++)
    {
        if(
PlayerHasItem(playeridItemInfo[i][Item_Name])) // LINE IN ERROR
        
{
            
CreateDrop(ItemInfo[i][Item_ID], X+random(3), Y+random(5), Z);
        }
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)