21.08.2018, 18:55
If you're using mysql to save business info (such as id, x, y, z, price and so on), then you can try with this:
OnGameModeInit:
OnGameModeInit:
pawn Код:
mysql_tquery(g_SQL, "SELECT * FROM `business`", "Business_Load");
pawn Код:
public Business_Load()
{
for(new i, j = cache_num_rows(); i != j; i++)
{
if(i < MAX_BUSINESSES)
{
//Your business loading code
//Set your tax code here
}
}
return 1;
}