SA-MP Forums Archive
multiply all biz - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: multiply all biz (/showthread.php?tid=658052)



multiply all biz - AzaMx - 21.08.2018

How can I make tax business like 1000 x all created biz which means like 1k per biz


Re: multiply all biz - KinderClans - 21.08.2018

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:

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;
}