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

pawn Код:
stock ResetAllInfo(playerid)
{
    KillTimer(healthUpdaterHunger[playerid]);
    KillTimer(healthUpdaterThirst[playerid]);
    KillTimer(progressUpdaterHunger[playerid]);
    KillTimer(progressUpdaterThirst[playerid]);
    KillTimer(Bleedingtimer[playerid]);
    TextDrawHideForPlayer(playerid,txtTimeDisp);
    TextDrawHideForPlayer(playerid, LegBroken[playerid]);
    TextDrawHideForPlayer(playerid,Textdraw0);
    TextDrawHideForPlayer(playerid,Textdraw1);
    TextDrawHideForPlayer(playerid,Textdraw2);
    return 1;
}

stock ForceDrop(playerid)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    for(new i; i < 99; i++)
    {
        if(PlayerHasItem(playerid, ItemInfo[i][Item_Name]))
        {
            CreateDrop(ItemInfo[i][Item_ID], X+random(3), Y+random(5), Z);
        }
    }
    return 1;
}
Here ya go
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)