Should this work? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Should this work? (
/showthread.php?tid=391555)
Should this work? -
MatZZPL - 10.11.2012
Hi everyone, i'm trying to create a car /park command but i don't think it works properly it just don't save the position
Код:
{
new
Float:Veh1_x,
Float:Veh1_y,
Float:Veh1_z;
GetVehiclePos(playerid,Veh1_x,Veh1_y,Veh1_z);
PlayerInfo[playerid][pVeh1_x] = Veh1_x;
PlayerInfo[playerid][pVeh1_y] = Veh1_y;
PlayerInfo[playerid][pVeh1_z] = Veh1_z;
SaveAccountStats(playerid);
GameTextForPlayer(playerid,"~h~~w~Your car have been parked here! Next time it will spawn~n~~h~~w~~h~~r~ here!",2500,1);
return 1;
}
am i doing something wrong??
Re: Should this work? -
Finn - 10.11.2012
GetVehiclePos(
playerid, Veh1_x, Veh1_y, Veh1_z);
Re: Should this work? -
MatZZPL - 10.11.2012
OMG @Finn i was changing the code for 2 hours and i couldn't solve it out! How did i not seeeee! thanks again + rep mate