SA-MP Forums Archive
CreateVehicle HELP - 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: CreateVehicle HELP (/showthread.php?tid=613820)



CreateVehicle HELP - kexy96 - 01.08.2016

Код:
new Float:normalX = 1761.9219,
        Float:normalY = -1809.9939,
        Float:normalZ = 13.5511,
        Float:normalA = 94.3999;
Код:
if(success)
                                                        {
                                                                new count2 = countplayerVeh(playerid);
                                                                if(count2 <= MAX_PLAYER_VEHICLES)
                                                                {
                                                                        if (Dealership[i][dealerType] != HELIKOPTEREK)
                                                                        {
                                                                                __createVehicle(Dealership[i][dealerModel], playerid, airX, airY, airZ, airA);
                                                                        }
                                                                        else
                                                                        {
                                                                                __createVehicle(Dealership[i][dealerModel], playerid, normalX, normalY, normalZ, normalA);
                                                                        }
                                                                }
                                                                else
                                                                {
                                                                        Server(playerid, "Nem lehet tцbb kocsid.");
                                                                }
                                                        }
Код:
stock __createVehicle(model, playerid, Float:x, Float:y, Float:z, Float:a)
{
        new query[512];
        mysql_format(mysql, query, sizeof(query), "INSERT INTO `vehicle` (`owner`, `model`, `posX`, `posY`, `posZ`, `posA`) VALUES ('%s', '%d', '%f', '%f', '%f', '%f')", PlayerName(playerid), model, x, y, z, a);
        mysql_tquery(mysql, query, "OnSavedVehicleCreated", "ddffff", model, playerid, x, y, z, a);
        return 1;
}
WHat's the problem?
Created vehicle Pos: X:0 Y:0 Z:0 A:0 WHY?? Why dont created NormalX NormalY NormalZ NormalA??
PLEASE HELP ME! THANK YOU


Re: CreateVehicle HELP - kexy96 - 01.08.2016

Help...


Re: CreateVehicle HELP - kexy96 - 01.08.2016

ANY?? :/


Re: CreateVehicle HELP - ActionTanki91 - 01.08.2016

What ? Code ?