[DUDA] Con SetVehicleVelocity
#3

Quote:
Originally Posted by OTACON
Посмотреть сообщение
Gracias por la ayuda, pero me salta dos errores.

(754) : error 021: symbol already defined: "IncreaseSpeed"
(757) : error 021: symbol already defined: "SetVehicleVelocity"
(25835) : warning 203: symbol is never used: "Velocity"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Код:
stock IncreaseSpeed(vehicleid,Float:speed) // Aquн da error
{ //By OTACON
new Float:Velocity[4];
SetVehicleVelocity(vehicleid,0,0,0); // Y aquн tambiйn
GetVehicleVelocity(vehicleid,Velocity[0],Velocity[1],Velocity[2]);
GetVehicleZAngle(vehicleid,Velocity[3]);
Velocity[0] = Velocity[0] + (speed/speed * floatsin(-Velocity[3], degrees));
Velocity[1] = Velocity[1] + (speed/speed * floatcos(-Velocity[3], degrees));
SetVehicleVelocity(vehicleid,Velocity[0],Velocity[1],Velocity[2]);}
}
La lнnea 25835 es el final del GM. :S Y como se usaria tu stock yo puse asн
Код:
		if(PlayerInfo[playerid][pVCepo] != 1)
		{
		    IncreaseSpeed(GetPlayerVehicleID(playerid),-5.0);
		}
Saludos y gracias.
Reply


Messages In This Thread
[DUDA] Con SetVehicleVelocity - by Waashaa - 23.01.2014, 17:10
Respuesta: [DUDA] Con SetVehicleVelocity - by OTACON - 23.01.2014, 17:41
Respuesta: [DUDA] Con SetVehicleVelocity - by Waashaa - 23.01.2014, 18:10
Respuesta: [DUDA] Con SetVehicleVelocity - by MugiwaraNoLuffy - 23.01.2014, 19:54
Respuesta: [DUDA] Con SetVehicleVelocity - by OTACON - 24.01.2014, 04:15
Respuesta: [DUDA] Con SetVehicleVelocity - by Waashaa - 24.01.2014, 18:50

Forum Jump:


Users browsing this thread: 1 Guest(s)