gvmi_17 Posted January 4, 2022 Report Posted January 4, 2022 (edited) 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! Edited January 4, 2022 by gvmi_17 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.