23.01.2014, 18:10
Quote:
(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]);} }
Код:
if(PlayerInfo[playerid][pVCepo] != 1) { IncreaseSpeed(GetPlayerVehicleID(playerid),-5.0); }