[Ajuda] Error
#1

Alguem pode me ajuda a resolver esse erro aqui
PHP код:
[17:36:45] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:45] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:45] [debug] AMX backtrace:
[
17:36:45] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:46] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:46] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:46] [debug] AMX backtrace:
[
17:36:46] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:47] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:47] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:47] [debug] AMX backtrace:
[
17:36:47] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:48] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:48] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:48] [debug] AMX backtrace:
[
17:36:48] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:49] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:49] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:49] [debug] AMX backtrace:
[
17:36:49] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:50] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:50] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:50] [debug] AMX backtrace:
[
17:36:50] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:51] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:51] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:51] [debug] AMX backtrace:
[
17:36:51] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:52] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:52] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:52] [debug] AMX backtrace:
[
17:36:52] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:53] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:53] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:53] [debug] AMX backtrace:
[
17:36:53] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:54] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:54] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:55] [debug] AMX backtrace:
[
17:36:55] [debug] #0 00000000 in public OtherTimer () from GM.amx
[17:36:55] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:36:55] [debug]  Stack pointer (STK) is 0x14672EC, heap pointer (HEA) is 0x1467580
[17:36:55] [debug] AMX backtrace:
[
17:36:55] [debug] #0 00000000 in public OtherTimer () from GM.amx 
Reply
#2

Manda a sua
PHP код:
public OtherTimer () 
Reply
#3

PHP код:
function OtherTimer()
{
    new 
str[128], string[128];
    foreach(
Player, i)
    {
        if (
PlayerToPoint(2.0, i, 2486.5198,-1645.2394,14.0772))
        {
            
GameTextForPlayer(i, "~w~HQ Groove St. 125", 5000, 1);
        }
        if (
PlayerToPoint(2.0, i, 1172.4932,-1323.3479,15.4030))
        {
            
GameTextForPlayer(i, "~w~HQ Departamento de Emergкncia.", 5000, 1);
        }
        if (
PlayerToPoint(2.0, i, 755.3737,-1362.3281,13.5131))
        {
            
GameTextForPlayer(i, "~w~HQ SAN Network", 5000, 1);
        }
        if (
PlayerToPoint(2.0, i, 1653.7765,-1655.5151,22.5156))
        {
            
GameTextForPlayer(i, "~w~HQ SA Gov", 5000, 1);
        }
        if (
PlayerToPoint(2.0, i, 1899.4996,-2005.1289,13.5469))
        {
            
GameTextForPlayer(i, "~w~HQ Varrio Nuevo Estrada", 5000, 1);
        }
        if (
PlayerToPoint(2.0, i, 2000.0482,-1114.3588,27.1250))
        {
            
GameTextForPlayer(i, "~w~HQ Grape Street Watts", 5000, 1);
        }
        if(
PlayerData[i][IsLoggedIn] == false && ByPASS[i] == 0)
        {
            if (
AFKLoggin[i] != -1)
            {
                
AFKLoggin[i] -= 1;
                if(
AFKLoggin[i] == 0)
                {
                    
SendClientMessage(i, COLOR_LIGHTRED, "** Vocк nгo fez login nуs 40 segundos necessбrio (Kikado) **");
                    
KickEx(i);
                }
            }
        }
        if(
PlayerData[i][Cash] != GetPlayerMoney(i))//
         
{
            new 
hack = GetPlayerMoney(i) - PlayerData[i][Cash];
            if(
hack!=0)
            {
                
ResetMoneyBar(i);
                
UpdateMoneyBar(i,PlayerData[i][Cash]);
            }
        }
        new 
Float: oldX[MAX_PLAYERS], Float: oldY[MAX_PLAYERS], Float: oldZ[MAX_PLAYERS];
        
oldX[i] = PosX[i];
        
oldY[i] = PosY[i];
        
oldZ[i] = PosZ[i];
        
GetPlayerPos(i,PosX[i],PosY[i],PosZ[i]);
        new 
Float:distanta[MAX_PLAYERS];
        
distanta[i] = GetDistanceBetweenPoints(oldX[i],oldY[i],oldZ[i],PosX[i],PosY[i],PosZ[i]);
        if(
distanta[i] == 0) PlayerAFK[i] = 1;
        else 
PlayerAFK[i] = 0;
        
//new faction = PlayerData[i][Member] + PlayerData[i][Leader];
        
if(PlayerData[i][Muted] > 0)
        {
            if(
PlayerData[i][MutedTime] > 0) PlayerData[i][MutedTime] -= 1;
            if(
PlayerData[i][MutedTime] <= 0)
            {
                
PlayerData[i][MutedTime] = 0;
                
PlayerData[i][Muted] = 0;

                
format(str, sizeof(str), "UPDATE `users` SET `Muted`='0', `MutedTime`='0' WHERE `id`='%d'", PlayerData[i][ID]);
                
mysql_tquery(SQL, str);

                
SendClientMessage(i, 0xFFFF00AA, "* Seu tempo calado terminou.");
                
format(string, 128, "O tempo calado terminou!");
                
GameTextForPlayer(i, string, 5000, 1);
            }
        }
        if(
PlayerData[i][PlayerCuffed] > 1)
        {
            
PlayerData[i][PlayerCuffed] -= 1;
            if(
PlayerData[i][PlayerCuffed] == 0)
            {
                
GameTextForPlayer(i, "~r~Vocк quebrou as algemas, vocк estб livre!", 2500, 3);
                
TogglePlayerControllable(i, 1);
                
PlayerData[i][PlayerCuffed] = 0;
            }
        }
        if(
PlayerData[i][Jailed] == 1)
        {
            if(
PlayerData[i][JailTime] > 0) PlayerData[i][JailTime] -= 1;
            
format(str, sizeof(str), "UPDATE `users` SET `JailTime`='%d' WHERE `id`='%d'", PlayerData[i][JailTime], PlayerData[i][ID]);
            
mysql_tquery(SQL, str);
            if(
PlayerData[i][JailTime] <= 0)
            {
                
PlayerData[i][JailTime] = 0;
                
PlayerData[i][Jailed] = 0;

                
format(str, sizeof(str), "UPDATE `users` SET `Jailed`='0', `JailTime`='0' WHERE `id`='%d'", PlayerData[i][ID]);
                
mysql_tquery(SQL, str);

                
SpawnPlayer(i);
            }
        }
        if(
PlayerData[i][PlayerToFind] >= 0)
        {
            new 
id = PlayerData[i][PlayerToFind];
            if(
PlayerData[id][InBizz] == -1 && PlayerData[id][InHouse] == -1 && PlayerData[id][InHQ] == -1)
            {
                new 
Float:X,Float:Y,Float:Z;
                
GetPlayerPos(id, X,Y,Z);
                
SetPlayerCheckpoint(i, X,Y,Z, 3);
            }
            else
            {
                if(
PlayerData[id][InBizz] > -1)
                {
                    new 
biz = PlayerData[id][InBizz];
                    
SetPlayerCheckpoint(i, BizzInfo[biz][bEntranceX],BizzInfo[biz][bEntranceY],BizzInfo[biz][bEntranceZ], 3);
                }
                else if(
PlayerData[id][InHouse] > -1)
                {
                    new 
house = PlayerData[id][InHouse];
                    
SetPlayerCheckpoint(i, HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez], 3);
                }
                else if(
PlayerData[id][InHQ] == 2) { SetPlayerCheckpoint(i, 2486.5198,-1645.2394,14.0772, 3); }
                else if(
PlayerData[id][InHQ] == 3) { SetPlayerCheckpoint(i, 2000.0482,-1114.3588,27.1250, 3); }
                else if(
PlayerData[id][InHQ] == 4) { SetPlayerCheckpoint(i, 1899.4996,-2005.1289,13.5469, 3); }
                else if(
PlayerData[id][InHQ] == 5) { SetPlayerCheckpoint(i, 1653.7765,-1655.5151,22.5156, 3); }
                else if(
PlayerData[id][InHQ] == 6) { SetPlayerCheckpoint(i, 755.3737,-1362.3281,13.5131, 3); }
                else if(
PlayerData[id][InHQ] == 7) { SetPlayerCheckpoint(i, 1172.4932,-1323.3479,15.4030, 3); }
            }
        }
        if(
GetPlayerState(i) == PLAYER_STATE_DRIVER && PlayerData[i][Speedlimit])
        {
//Speedlimit
            
new a, b, c;
            
GetPlayerKeys(i, a, b ,c);
            new 
speed = PlayerData[i][Speed];
            if(
a == 8 && speed > PlayerData[i][Speedlimit])
            {
                new 
newspeed = speed - PlayerData[i][Speedlimit];
                
ModifyVehicleSpeed(GetPlayerVehicleID(i), -newspeed);
            }
        }
        if(
GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerNPC(i))
        {
//Radar
            
if(PlayerData[i][RadarUse] > 0)
            {
                new 
Float:x1, Float:y1, Float:z1;
                
GetPlayerPos(i,x1,y1,z1);
                foreach(
Player, o)
                {
                    if(
o != i)
                    {
                        if(
IsPlayerInRangeOfPoint(o, 20, x1,y1,z1))
                          {
                            new 
factiono = PlayerData[o][Member] + PlayerData[o][Leader];
                            new 
speed = PlayerData[o][Speed];
                            if(
speed >= PlayerData[i][RadarUse] && GetPlayerState(o) == PLAYER_STATE_DRIVER)
                            {
                                if(
factiono != 1 || PlayerData[o][OnDuty]  == 0)
                                {
                                    
format(string, sizeof(string), "%s(%d) estб dirigindo com %.0d km/h, Limite de velocidade: %d km/h!",PlayerData[o][Name],o,speed,PlayerData[i][RadarUse]);
                                      
SendClientMessage(i, COLOR_REDD, string);
                                      
format(string, sizeof(string), "Vocк foi capturado pelo radar %s's(%d) a %.0d km/h, Limite de velocidade: %d km/h!",PlayerData[i][Name],i,speed,PlayerData[i][RadarUse]);
                                      
SendClientMessage(o, COLOR_REDD, string);
                                }
                            }
                        }
                    }
                }
                if(
PlayerData[i][Speed] > 1)
                {
                    
PlayerData[i][RadarUse] = 0;
                    
SendClientMessage(i, COLOR_LIGHTBLUE2, "Vocк parou no radar.");
                }
            }
        }
        if(
GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && PlayerData[i][Admin] < 1)
        {
            new 
reasonn[64];
            
format(reasonn,sizeof(reasonn),"Jetpack");
            
BanA(i,"AdmBot",reasonn,0,0,1);
        }
    }
} 
Reply
#4

up up
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)