mysql
#4

Do some debugging to make sure that the information coming out is accurate, for example:

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))
        {
            printf("Row: %s",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;
}
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: 3 Guest(s)