04.01.2011, 21:02
I am trying to make a command to change a vehicle's velocity. at the moment i am using
which compiles fine, but dosnt do anything when i use the command.
when i use
which also compiles fine, but when i use the command it increses the players velocity on the Z by 5.
Can someone tell me what im doing wrong? Thanks.
Код:
new Float:pX,Float:pY,Float:pZ; new viv; new tmp5[MAX_PLAYERS]; viv = GetPlayerVehicleID(pid); GetVehicleVelocity(viv, pX, pY, pZ); SetVehicleVelocity(viv, pX, pY, pZ +tmp5[pid]);
when i use
Код:
new Float:pX,Float:pY,Float:pZ; new viv; new tmp5[MAX_PLAYERS]; viv = GetPlayerVehicleID(pid); GetVehicleVelocity(viv, pX, pY, pZ); SetVehicleVelocity(viv, pX, pY, pZ +5);
Can someone tell me what im doing wrong? Thanks.