02.07.2011, 10:27
Код:
if (strcmp("/createveh", cmdtext, true, 10) == 0) { new Float:x, Float:y, Float:z, Float:angle; new veh; veh = GetPlayerVehicleID(playerid); GetVehiclePos(veh, x, y, z); GetVehicleZAngle(veh, angle); new Query[200]; format(Query, sizeof(Query), "INSERT INTO `vehicles` (`ID`, `model`, `owner`, `price`, `vehx`, `vehy`, `vehz`, `plate`, `color1`, `color2`, `angle`) VALUES '', '%i', '', '', '%f', '%f', '%f', '', '1', '1', '%f'", veh, x, y, z, angle); mysql_query(Query); return 1; }