SakonX Posted April 8, 2021 Report Posted April 8, 2021 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
Banditul Posted April 8, 2021 Report Posted April 8, 2021 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
SakonX Posted April 8, 2021 Author Report Posted April 8, 2021 (edited) Multumesc fumos, nu am mai primit nici o eroare de aceasta data. Edited April 8, 2021 by SakonX
Recommended Posts