what is the id on sprint?
#3

yea, thanks also one more thing so i have this

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if((newkeys & KEY_SPRINT)
    {
		if(IsPlayerInAnyVehicle(playerid)}
		{
		    ModifyVehicleSpeed(-1);
		}
	}
	return 1;
}




stock ModifyVehicleSpeed(mph)
{
	new Float:Vx,Float:Vy,Float:Vz,Float:DV,Float:multiple;
	for( new c = 1; c <= MAX_VEHICLES; c ++ )
	{
		GetVehicleVelocity(c,Vx,Vy,Vz);
		DV = floatsqroot(Vx*Vx + Vy*Vy + Vz*Vz);
		if(DV > 0)
		{
			multiple = ((mph + DV * 100) / (DV * 100));
			return SetVehicleVelocity(c,Vx*multiple,Vy*multiple,Vz*multiple);
		}
	}
	return 0;
}
and i have these errors

Код:
C:\Users\Andrei\Desktop\Andrei\zPlague -v2-\filterscripts\slowmotion.pwn(174) : error 029: invalid expression, assumed zero
C:\Users\Andrei\Desktop\Andrei\zPlague -v2-\filterscripts\slowmotion.pwn(175) : error 001: expected token: ")", but found "}"
C:\Users\Andrei\Desktop\Andrei\zPlague -v2-\filterscripts\slowmotion.pwn(175) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
can you please explain what i was doing wrong?
Reply


Messages In This Thread
what is the id on sprint? - by SwisherSweet - 27.08.2013, 07:33
Re: what is the id on sprint? - by Dragonsaurus - 27.08.2013, 07:37
Re: what is the id on sprint? - by SwisherSweet - 27.08.2013, 07:38
Re: what is the id on sprint? - by Finn707 - 27.08.2013, 07:43
Re: what is the id on sprint? - by Dragonsaurus - 27.08.2013, 07:44
Re: what is the id on sprint? - by SwisherSweet - 27.08.2013, 07:45
Re: what is the id on sprint? - by Dragonsaurus - 27.08.2013, 07:47
Re: what is the id on sprint? - by JimmyCh - 27.08.2013, 08:03

Forum Jump:


Users browsing this thread: 1 Guest(s)