09.01.2018, 13:53
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
}
}
#e: Hm, this is problematic, but might not be the root cause. Either way, check it first