Help load
#1

Hii!!I do not know how to I set sscanf for load "FUEL"...
http://imgur.com/PmbJ2AA
pls correct me ..
Thanx

Код:
case THREAD_UCITAJAUTOMOBIL:
        {
                mysql_store_result();
                new linija[210];
                if(mysql_num_rows() == 1)
                {
          			AutomobilZauzet[extraid] = 1;
                    if(mysql_fetch_row(linija))
                    {
                    new k, x, fuel;
                    sscanf(linija, "p<|>iiffffiiiiiis[35]s[35]iiis[15]iiiiiiiiiiiiiiiiiiiiiiif",
                    k,VInfo[extraid][hModel], VInfo[extraid][hPozX], VInfo[extraid][hPozY], VInfo[extraid][hPozZ], VInfo[extraid][hPozA], VInfo[extraid][hPaintJob], VInfo[extraid][hvw], VInfo[extraid][hent],
                    VInfo[extraid][hZakljucan], VInfo[extraid][hBoja1],VInfo[extraid][hBoja2], VInfo[extraid][hVlasnik], VInfo[extraid][hOpis], VInfo[extraid][hck], VInfo[extraid][hcg],VInfo[extraid][hImaVlasnika],
                    VInfo[extraid][hTablice], VInfo[extraid][hoDroga], VInfo[extraid][hoOruzje1], VInfo[extraid][hoOruzje2], VInfo[extraid][hoOruzje3], VInfo[extraid][hoMunicija1],VInfo[extraid][hoMunicija2], VInfo[extraid][hoMunicija3],
                    VInfo[extraid][hAlarm], VInfo[extraid][hProdat], x, 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],fuel);
                    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]] = fuel;
					}
                }
                mysql_free_result();
        }
Reply
#2

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)