Help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (
/showthread.php?tid=138784)
Help -
[WF]Demon - 03.04.2010
Hi, im trying to create something that will check the velocity of a vehicle, problem is no matter what value i set to get, it still gets as 1
pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:spx, Float:spy, Float:spz;
GetVehicleVelocity(GetPlayerVehicleID(playerid), spx, spy, spz);
if(IsPlayerInAnyVehicle(playerid))
{
if(spx * 3 && spy * 3 && spz * 3)
{
for example i put a message to see if it works i set those values to 9999999 it still sends the message when i just barely press w, i press w, it still appears, im not quite familiar with this "*" thing, but im trying to check if the car has went above "3"
- Cody Beer
Re: Help -
[WF]Demon - 03.04.2010
BUMP- Anyone? please?