Dynamic Bar
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 2 Guest(s)