mysql
#1

why this dont load any car?

pawn Код:
stock L()
{
    new
        Query[512],
        vModel2,
        vC[2],
        vID,
        Float:Pos[4];

    mysql_query("SELECT * FROM `veh`");
    mysql_store_result();
    if(mysql_num_rows() > 0)
    {
        while(mysql_fetch_row(Query))
        {
            sscanf(Query, "p<|>iiiffff",vModel2, vC[0], vC[1], Pos[0], Pos[1], Pos[2], Pos[3]);
            CreateVehicle(vModel2, Pos[0], Pos[1], Pos[2], Pos[3], vC[0], vC[1], 500000);
        }
    }
    mysql_free_result();
    return 1;
}
Reply


Messages In This Thread
mysql - by iJumbo - 13.02.2011, 16:13
Re: mysql - by wups - 13.02.2011, 16:19
[No subject] - by iJumbo - 13.02.2011, 16:24
Re: mysql - by JaTochNietDan - 13.02.2011, 19:19
Re: mysql - by iJumbo - 13.02.2011, 19:22
Re: mysql - by JaTochNietDan - 13.02.2011, 19:29
Re: mysql - by iJumbo - 13.02.2011, 19:32
Re: mysql - by JaTochNietDan - 13.02.2011, 19:35
Re: mysql - by iJumbo - 13.02.2011, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)