Mysql Loading Help ! [+rep]
#4

Well, if you want to manage atm's from let's say website, sql is a good choice (though it's not impossible with files, but a little inconvinient).

pawn Code:
while(i < rows)
    {
        cache_get_field_content(i, "VW", tmp, MainPipeline); ATM[i][atmVW] = strval(tmp);
        cache_get_field_content(i, "Int", tmp, MainPipeline); ATM[i][atmInt] = strval(tmp);
        cache_get_field_content(i, "Modelz", tmp, MainPipeline); ATM[i][atmModelz] = strval(tmp);
        cache_get_field_content(i, "PosX", tmp, MainPipeline); ATM[i][atmPosX] = floatstr(tmp);
        cache_get_field_content(i, "PosY", tmp, MainPipeline); ATM[i][atmPosY] = floatstr(tmp);
        cache_get_field_content(i, "PosZ", tmp, MainPipeline); ATM[i][atmPosZ] = floatstr(tmp);
        cache_get_field_content(i, "Angle", tmp, MainPipeline); ATM[i][atmAngle] = floatstr(tmp);
    }
        RenderATM(i);
          i++;
Put i++ and RenderATM inside the while, should work then.
Reply


Messages In This Thread
Mysql Loading Help ! [+rep] - by MoemenWalid - 12.03.2015, 15:38
Re : Mysql Loading Help ! [+rep] - by Golimad - 12.03.2015, 15:44
Re: Mysql Loading Help ! [+rep] - by MoemenWalid - 12.03.2015, 15:54
Re: Mysql Loading Help ! [+rep] - by Misiur - 12.03.2015, 15:58
Respuesta: Mysql Loading Help ! [+rep] - by CuervO - 12.03.2015, 16:23
Re: Mysql Loading Help ! [+rep] - by MoemenWalid - 12.03.2015, 16:24
Re: Mysql Loading Help ! [+rep] - by Misiur - 12.03.2015, 16:28
Re: Respuesta: Mysql Loading Help ! [+rep] - by MoemenWalid - 12.03.2015, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)