Quote:
Originally Posted by Konstantinos
pawn Код:
// global: new gLoaded_Houses;
// when houses are loaded (in each iteration that a house is stored to the array "House"): gLoaded_Houses++;
// any other loop after the houses have been loaded (stored to variables): for(new h; h < gLoaded_Houses; h++)
// if you have command to create house and it is created successfully: gLoaded_Houses++;
// if you have command to delete house and it is deleted successfully: gLoaded_Houses--;
|
And how it solves my problem? I need to count how much houses player have. This script does not work with player. I have constant number of houses.