SA-MP Forums Archive
Vehicle not being made - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle not being made (/showthread.php?tid=444033)



Vehicle not being made - iFarrow - 14.06.2013

I get no error or warning yet the car isn't being made.

pawn Код:
case Thread_LoadVehicles:
        {
            mysql_store_result();
            new result[124];
            while(mysql_retrieve_row()) {
                mysql_get_field("DataID", result);
                Vehicle[extraid][DataID] = strval(result);

                mysql_get_field("vModel", result);
                Vehicle[extraid][vModel] = strval(result);

                mysql_get_field("vPosX", result);
                Vehicle[extraid][vPos][0] = floatstr(result);

                mysql_get_field("vPosY", result);
                Vehicle[extraid][vPos][1] = floatstr(result);

                mysql_get_field("vPosZ", result);
                Vehicle[extraid][vPos][2] = floatstr(result);
               
                mysql_get_field("vPosR", result);
                Vehicle[extraid][vPos][3] = floatstr(result);
               
                mysql_get_field("vColour1", result);
                Vehicle[extraid][vColour][0] = strval(result);

                mysql_get_field("vColour2", result);
                Vehicle[extraid][vColour][1] = strval(result);
               
                mysql_get_field("vFuel", result);
                Vehicle[extraid][vFuel] = strval(result);

                Vehicle[extraid][vVehicleID] = CreateVehicle(Vehicle[extraid][vModel], Vehicle[extraid][vPos][0], Vehicle[extraid][vPos][1], Vehicle[extraid][vPos][2], Vehicle[extraid][vPos][3], Vehicle[extraid][vColour][0], Vehicle[extraid][vColour][1], 60000);

                Fuel[extraid] = Vehicle[extraid][vFuel];
               
                System[VehicleCount]++;
            }
            printf("[System] %d Vehicle(s) loaded.", System[VehicleCount]);
            mysql_free_result();
        }



Re: Vehicle not being made - iFarrow - 14.06.2013

Bump


Re: Vehicle not being made - iFarrow - 14.06.2013

Fixed.