Creepy house system bug
#4

This is your issue:
pawn Code:
for(new i = 1; i < rows && i < MAX_HOUSES; i ++)
Rows start at 0, your iteration starts at 1.

You could do something like this to achieve your goal:
pawn Code:
new G_HOUSES_SPAWNED = 0;

for(new i; i < rows && i < MAX_HOUSES; i++){
    G_HOUSES_SPAWNED++;
   
    HouseInfo[ G_HOUSES_SPAWNED ][ var_pppp ] = cache_get_field_content_int(i, "ID");


}
Reply


Messages In This Thread
Creepy house system bug - by ShadowMortar - 23.01.2019, 19:10
Re: Creepy house system bug - by codExpert - 23.01.2019, 20:38
Re: Creepy house system bug - by ShadowMortar - 24.01.2019, 06:40
Re: Creepy house system bug - by Kane - 24.01.2019, 07:13
Re: Creepy house system bug - by ShadowMortar - 24.01.2019, 07:37
Re: Creepy house system bug - by Kane - 24.01.2019, 07:46
Re: Creepy house system bug - by Logic_ - 24.01.2019, 07:48
Re: Creepy house system bug - by fiki574 - 24.01.2019, 09:31
Re: Creepy house system bug - by ShadowMortar - 24.01.2019, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)