SA-MP Forums Archive
Dynamic Bar - 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: Dynamic Bar (/showthread.php?tid=307290)



Dynamic Bar - Tanush123 - 29.12.2011

pawn Code:
stock LoadBar()
{
    new barcount = 0;
    for(new i = 0;i<MAX_BARS;i++)
    {
            new barx,bary,barz,barrid;
            format(query,sizeof(query),"SELECT * FROM Bars WHERE ID = %d,PosX = %f,PosY = %f,PosZ = %f",barrid,barx,bary,barz);
            mysql_query(query);
            BarInfo[i][barcheck] = CreateDynamicCP(barx,bary,barz,3,-1,-1,-1,50);
            BarInfo[i][bartext] = Create3DTextLabel(barstr,Niceyellow,X,Y,Z,50,-1,0);
            barcount++;
    }

}
problem is when i restart it doesnt loads the CP or the Text label


Re: Dynamic Bar - coole210 - 29.12.2011

You loaded everything wrong, look at a tut for mysql.