Very strange bug in saving/loading items.
#9

pawn Код:
for(new i = 0; i < sizeof(ItemInfo); i++)
{
    if (IsPlayerInRangeOfPoint(playerid, 2.0,ItemInfo[i][ItemPosX],ItemInfo[i][ItemPosY],ItemInfo[i][ItemPosZ]))
    {
        if(GetPlayerVirtualWorld(playerid) == ItemInfo[i][ItemVWorld] && GetPlayerInterior(playerid) == ItemInfo[i][ItemInterior])
        {
            if(ItemInfo[i][Toggled] == 0)
            {
                // (...)
                return 1;
            }
        }else return 0; // <-- This little shit
    }
}
Get rid of the return 0, otherwise other items won't even get looped over

#e: Hm, this is problematic, but might not be the root cause. Either way, check it first
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)