CMD:savepos(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 6 && !Fondator(playerid)) return SCM(playerid, -1, AdminOnly);
new Float: x, Float: y, Float: z, Float: angle, string[128]; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, angle);
format(string, sizeof(string), "X: %f | Y: %f | Z: %f | Angle: %f", x, y, z, angle);
mysql_format(SQL, gString, sizeof gString, "INSERT INTO `vehicles` (`PosX` , `PosY` , `PosZ`, `Rotation`) CHANGE ('%f', '%f', '%f', '%f')", x, y, z, angle);
mysql_tquery(SQL, gString, "", "");
SCM(playerid, -1, string);
return true;
}
Nu se salveaza pozitia la masina, nu stiu ce am gresit!