mysql
#3

pawn Код:
stock L()
{
    new Str[67], dModel, Float:VX, Float:VY, Float:VZ, Float:VA, vTotal;
    mysql_query("SELECT * FROM `vehicles`");
    mysql_store_result();
    vTotal = mysql_num_rows();
    if(vTotal > 0)
    {
        while(mysql_fetch_row(Str))
        {
            sscanf(Str, "p<|>iffff", dModel, VX, VY, VZ, VA);
            new VID = CreateVehicle(dModel, VX, VY, VZ, VA, -1, -1, (30 * 60));
            SetVehicleNumberPlate(VID,"ISS");
        }
    }
    mysql_free_result();
    printf("%i vehicle loaded", vTotal);
    return 1;
}
i change the code to this ...

but WHY i dont see any car!!!!

server log

17 vehicle loaded
Number of vehicle models: 1 <<<<< whyyy no spawn a car!!!
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: 1 Guest(s)