Код:
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;
}
Created vehicle Pos: X:0 Y:0 Z:0 A:0 WHY?? Why dont created NormalX NormalY NormalZ NormalA??