Quote:
Originally Posted by Misiur
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
|
Thanks for the help, the problem was with saving, some items didnt get their coords saved in the enum. ( found out by using debug msges)