19.05.2017, 17:32
If "house1, house2, house3, etc." is a factor or a enumerator and the first factor starts at index 0 (modify the loop's initial and final value if it does not start at index 0), you can do:
Please note that you must change "nameOfEnumerator" to the correspondent name of your enumerator.
pawn Код:
for(new i = 0; i < 8; i ++)
{
if(PlayerInfo[playerid][nameOfEnumerator:i] == 40)
{
PlayerInfo[playerid][nameOfEnumerator:i] = 0;
}
}