gvmi_17
-
Posts
1 -
Joined
-
Last visited
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
/savepos Ajutor
in Discuţii scripting
Posted · Edited by gvmi_17
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!