Help [How] get x,z,y
#1

Hi guys


please , how to get x,z,y at car
Reply
#2

Are you trying to find out the X,Y,Z of a car or just your position?
Reply
#3

ok this is simillars to the player get pos function
just look
Код:
 for(new i = 0;i > MAX_VEHICLE;i++)
 {
 new Float:X,Float:Y,Float:Z;
 GetVehiclePos(i,X,Y,Z);
 new string[256];
    format(string,sizeof(string),"Car id %i on the pos %f, %f , %f",i,X,Y,Z);
   print(string);
 }
this get the poss for all the cars from the server and print the cordonates into the console
Reply
#4

/save
Reply
#5

pawn Код:
new Float:X,Float:Y,Float:Z;
GetVehiclePos(vehicleid,X,Y,Z);
Try the upper code ^^
Reply
#6

ok Gamer, but you know the vehicleid isn't define in all the callbacks, so he will get errors.
Reply
#7

pawn Код:
new Float:x, Float:y, Float:z;
GetVehiclePos(id, x, y, z);
But next time search before asking : https://sampwiki.blast.hk/wiki/GetVehiclePos
Reply
#8

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
pawn Код:
new Float:X,Float:Y,Float:Z;
GetVehiclePos(vehicleid,X,Y,Z);
Try the upper code ^^
How i use this pawn
Reply
#9

Quote:
Originally Posted by Hade1234
Посмотреть сообщение
How i use this pawn
First of all you tell, what you want? I mean where you want to use it?
Reply
#10

lol , thanks all

==> But i mean Get x,z,y ( like : if Player in this x,z,y using /get or any cmd .... )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)