Jump to content

Recommended Posts

Posted

Aceasta este linia:

function Timers() {
    new i, anim, Float: animpos[3];
        if (PlayerInfo[i][pAdmin] < 1 && ac_flyhack == 1) {
                anim = GetPlayerAnimationIndex(i), GetPlayerVelocity(i, animpos[0], animpos[1], animpos[2]);            
                if(animpos[0] <= -0.800000 || animpos[1] <= -0.800000 || animpos[2] <= -0.800000 && anim == 1008) {
                SendAdmins(COLOR_RED2, "AdmWarning: %s (%d) este suspectat de Fly-Hack.", 1, GetName(i), i);
                new surfx = GetPlayerSurfingVehicleID(i);
                if(surfx == INVALID_VEHICLE_ID && !IsABike2(gLastCar[i])) {                    
                CheatWarnings[i] += 2;
                defer KickEx(i);
                }
            }
        }                    
    }        
    OtherTimer();
    return true;

Si primesc urmatoarele errori:

C:\Users\SaKONx\Desktop\DarkPearl\gamemode DarkPearl\gamemodes\darkpearl.pwn(846) : loose indentation
C:\Users\SaKONx\Desktop\DarkPearl\gamemode DarkPearl\gamemodes\darkpearl.pwn(859) : error 010: invalid function or declaration

Posted

Presupunand faptul ca eroarea de fapt este la linia cu OtherTimer() si acel return true solutie e

function Timers() 
{
    new i, anim, Float: animpos[3];
    if (PlayerInfo[i][pAdmin] < 1 && ac_flyhack == 1) 
    {
            anim = GetPlayerAnimationIndex(i), GetPlayerVelocity(i, animpos[0], animpos[1], animpos[2]);            
            if(animpos[0] <= -0.800000 || animpos[1] <= -0.800000 || animpos[2] <= -0.800000 && anim == 1008) 
            {
                SendAdmins(COLOR_RED2, "AdmWarning: %s (%d) este suspectat de Fly-Hack.", 1, GetName(i), i);
                new surfx = GetPlayerSurfingVehicleID(i);
                if(surfx == INVALID_VEHICLE_ID && !IsABike2(gLastCar[i])) {                    
                CheatWarnings[i] += 2;
                defer KickEx(i);
            }
        }
    }
    OtherTimer();
    return true;                   
}   

Ti-as sugera sa folosesti acoladele in stilul pus de mine, e mult mai usor sa urmaresti unde se termina de fapt functia. In cazul tau instructiunile tale de OtherTimer si return true nu apartiunea nici unei functii sau bloc de cod

  • Mister locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.