Hii ! I have problem with loadcar..
Код:
case THREAD_LOADCAR:
{
mysql_store_result();
new linija[210];
if(mysql_num_rows() == 1)
{
AutomobilZauzet[extraid] = 1;
if(mysql_fetch_row(linija))
{
new k, x, gorrivo;
sscanf(linija, "p<|>iiffffiiiiiiiiiiiiiiiis[35]s[35]is[15]iiiiiiiiiiiiiiif",
k, VInfo[extraid][hModel], VInfo[extraid][hPozX], VInfo[extraid][hPozY], VInfo[extraid][hPozZ], VInfo[extraid][hPozA], VInfo[extraid][hPaintJob], VInfo[extraid][hKomponenta1], VInfo[extraid][hKomponenta2],
VInfo[extraid][hKomponenta3], VInfo[extraid][hKomponenta4], VInfo[extraid][hKomponenta5], VInfo[extraid][hKomponenta6], VInfo[extraid][hKomponenta7], VInfo[extraid][hKomponenta8],
VInfo[extraid][hKomponenta9], VInfo[extraid][hKomponenta10], VInfo[extraid][hKomponenta11], VInfo[extraid][hKomponenta12], VInfo[extraid][hKomponenta13], VInfo[extraid][hBoja1], VInfo[extraid][hBoja2],
VInfo[extraid][hVlasnik], VInfo[extraid][hOpis],VInfo[extraid][hImaVlasnika], VInfo[extraid][hTablice], VInfo[extraid][hck], VInfo[extraid][hcg], VInfo[extraid][hvw], VInfo[extraid][hent],
VInfo[extraid][hoDroga], VInfo[extraid][hoOruzje1], VInfo[extraid][hoMunicija1], VInfo[extraid][hoOruzje2], VInfo[extraid][hoMunicija2], VInfo[extraid][hoOruzje3], VInfo[extraid][hoMunicija3],
VInfo[extraid][hAlarm], VInfo[extraid][hProdat], VInfo[extraid][hZakljucan], x,gorrivo);
if(VInfo[extraid][hProdat] == 0) VInfo[extraid][ownedvehicle] = CreateVehicle_H(VInfo[extraid][hModel], 11999.0+random(10000), 11999.0+random(10000), 0.0, 0.0, 0, 0, 1000);
Gorivo[VInfo[extraid][ownedvehicle]] = gorrivo;
}
}
mysql_free_result();
}