Nikita_Iphonin
Ученик
PHP:
D:\server\russ\gamemodes\ServerMod.pwn(53872) : error 030: compound statement not closed at the end of file (started at line 53867)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP:
if( floatabs(spd[ 1 ]) > BE_MAX_SPD )
{
hls = BE_MAX_SPD / floatabs(spd[ 1 ]);
SetVehicleVelocity( veh, spd[0]*hls, spd[1]*hls, spd[2] );
}
PHP:
public BadEngine()
{
new veh, Float:spd[3], Float:hls;
for(new i; i != GetMaxPlayers(); i++)
{
veh = GetPlayerVehicleID( i );
if( !veh ) { continue; }
GetVehicleHealth( veh, hls );
if( hls > BE_MIN_HLS ) { continue; }
GetVehicleVelocity( veh, spd[0], spd[1], spd[2] );
if( floatabs(spd[0]) > floatabs(spd[1]) )
{
if( floatabs(spd[ 0 ]) > BE_MAX_SPD )
{
hls = BE_MAX_SPD / floatabs(spd[ 0 ]);
SetVehicleVelocity( veh, spd[0]*hls, spd[1]*hls, spd[2] );
}
}
else
{
if( floatabs(spd[ 1 ]) > BE_MAX_SPD )
{
hls = BE_MAX_SPD / floatabs(spd[ 1 ]);
SetVehicleVelocity( veh, spd[0]*hls, spd[1]*hls, spd[2] );
}
