28.05.2015, 16:14
pawn Код:
stock GetVehicleSpeed(id) // Geting speed with km/h !
{
new Float:p[3],string[128];
GetVehicleVelocity(id,p[0],p[1],p[2]);
format(string,sizeof(string),"%.0f",150.0*(p[0]*p[0]+p[1]*p[1]));
return string;
}
pawn Код:
LINE: if(GetVehicleSpeed(GetPlayerVehicleID(i)) > 221) KickAntiCheat(i,"Speed Hack");
ERROR: .pwn(20699) : error 033: array must be indexed (variable "GetVehicleSpeed")