05.01.2017, 04:54
I wondered why this loop doesnt work well on Large Value Imean damn its really hard to explain. Im having a hard time for this bug damn, At first Small/Medium Max slot it really works well but then when it comes to Large slot the loop doesnt work well it doesnt read or execute the last digit. it always stucked at 148 it doesnt execute after that count I wondered why
Small = 49 (Works perfectly)
Medium = 99 (works perfectly)
Large = 149 (Even i change the value of it still it doesnt execute the last count, Stucked at 148 Count and it doesnt shows the damn Dialog)
GetHouseFurnitureMax returns the max value of of slot. Simply return Small, return Medium
This is the log print of Large Max Slot (149 value)
It always stuck at 148 it doesn't execute further more that makes the code bug after that it doesnt show the Dialog

And this is the log print of Medium Max Slot (99 Value)
This one works perfectly it does execute at the last count
Small = 49 (Works perfectly)
Medium = 99 (works perfectly)
Large = 149 (Even i change the value of it still it doesnt execute the last count, Stucked at 148 Count and it doesnt shows the damn Dialog)
GetHouseFurnitureMax returns the max value of of slot. Simply return Small, return Medium
Code:
strcat(bigstring, "House Furnitures:\tStatus:"); while(fPage[playerid] < GetHouseFurnitureMaxSlot(hID)) { fPage[playerid]++; for(new u;u<sizeof(FurnituresData);u++) { if(FurnitureInfo[hID][fPage[playerid]][FModel] == INVALID_FURNITURE_ID) { format(string, sizeof(string), "%d - {FF6347}Empty",fPage[playerid] ,FurnituresData[u][fName]); } else { if(FurnituresData[u][fObject] == FurnitureInfo[hID][fPage[playerid]][FModel]) { format(name, sizeof(name), "%s", FurnituresData[u][fName]); } if(FurnitureInfo[hID][fPage[playerid]][FPosX] != 0.0) format(string, sizeof(string), "%d - %s\t{33AA33}in house", fPage[playerid], name); // Edit else format(string, sizeof(string), "%d - %s\t{0000FF}in storage", fPage[playerid], name); // Place } } format(bigstring, sizeof(bigstring), "%s\n%s", bigstring, string); format(string, sizeof(string), "Furniture Count: %d", fPage[playerid]); //debug print SendClientMessageEx(playerid, COLOR_YELLOW, string); if(++slotcount == 10) { strcat(bigstring, "\nBack Page"); strcat(bigstring, "\nNext Page"); format(titlestring, sizeof(titlestring), "{33AA33}House Furnitures{FFFFFF} Slot (%d/%d)",HouseInfo[hID][FCount], GetHouseFurnitureMaxSlot(hID)); ShowPlayerDialog(playerid, DIALOG_EDIT_FURNITURE, DIALOG_STYLE_TABLIST_HEADERS, titlestring, bigstring, "Select", "Cancel"); break; } } format(string, sizeof(string), "Furniture Count: %d", fPage[playerid]); //debug print SendClientMessageEx(playerid, COLOR_NEWS, string);
It always stuck at 148 it doesn't execute further more that makes the code bug after that it doesnt show the Dialog

And this is the log print of Medium Max Slot (99 Value)
This one works perfectly it does execute at the last count
