Should this work?
#1

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??
Reply
#2

GetVehiclePos(playerid, Veh1_x, Veh1_y, Veh1_z);
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)