I name Alex
Умник
приветствую, помогите пожалуйста решить проблему.
В a_samp.ini
native Float:VectorSize(Float:x, Float:y, Float:z);
PHP:
[21:47:08] [debug] Run time error 19: "File or function is not found"
[21:47:08] [debug] VectorSize
[21:47:08] [debug] Run time error 19: "File or function is not found"
[21:47:08] [debug] VectorSize
native Float:VectorSize(Float:x, Float:y, Float:z);
PHP:
stock LimitingVehicleSpeed(const vehicleid, const max_speed)
{
new Float: x, Float: y, Float: z;
GetVehicleVelocity(vehicleid, x, y, z);
if(floatround(VectorSize(x, y, z) * 100.0) >= max_speed) return SetVehicleVelocity(vehicleid, x*0.97, y*0.97, z);
return 1;
}
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
switch(GetVehicleModel(vehicleid))
{
case 560: LimitingVehicleSpeed(vehicleid, 305);
case 561: LimitingVehicleSpeed(vehicleid, 405);
case 562: LimitingVehicleSpeed(vehicleid, 505);
}
}
