Crashdetect
#1

Hola, mi crashdetect me detecta lo siguiente: [debug] AMX backtrace:
[debug] #0 003ea82c in severTimers () at C:\Users...:57713
[debug] #1 003ea36c in public severTimers@_yT () at C:\Users...:57694

Код:
timer severTimers[1000]() // Linea 57694
{
	if(iAdverTimer >= 1)
		--iAdverTimer;
	foreach(Player, i)
	{
	    SyncPlayerTime(i);
	    if(IsPlayerConnectedEx(i))
	    {
			if(Tied[i] > 0) TogglePlayerControllable(i, 0);
	        if(GetPVarInt(i, "EMSAttempt") == -1) ApplyAnimation(i, "CRACK", "crckidle1",4.0,0,1,1,1,-1);
		    if(CellTime[i] > 0)
			{
				if (CellTime[i] == cchargetime)
				{
					CellTime[i] = 1;
					if(Mobile[Mobile[i]] == i) { CallCost[i] = CallCost[i]+callcost; }
				}
				CellTime[i]++;
				if(Mobile[Mobile[i]] == -1 && CellTime[i] == 5) // linea 57713
				{
				    if(IsPlayerConnectedEx(Mobile[i]))
				    {
						new called[MAX_PLAYER_NAME], string[96];
						GetPlayerName(Mobile[i], called, sizeof(called));
						format(string, sizeof(string), "* El telйfono de %s esta sonando", called);
						ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					}
				}
			}
			if(CellTime[i] == 0 && CallCost[i] > 0)
			{
			    new string[64];
				format(string, sizeof(string), "~w~Costo de llamada %d",CallCost[i]);
				GameTextForPlayer(i, string, 5000, 1);
				GivePlayerCash(i, -CallCost[i]);
				CallCost[i] = 0;
			}
			for(new h = 0; h < sizeof(Points); h++)
			{
				if(IsPlayerInRangeOfPoint(i, 2.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz])){
					if(Points[h][Type] == 3 && Info[i][pPot] < 3){
						GameTextForPlayer(i, "~w~Usa /comprarhierba para comprar algo de ~n~~r~hierba", 5000, 5);
					}
					else if(Points[h][Type] == 1 && GetPVarInt(i, "Packages") == 0){
						GameTextForPlayer(i, "~w~Usa /materiales para comprar ~n~~r~paquetes de materiales.", 5000, 5);
					}
					else if(Points[h][Type] == 4){
						GameTextForPlayer(i, "~w~Usa /comprarcrack para comprar ~n~algo de ~r~crack", 5000, 5);
					}
					else if(Points[h][Type] == 5){
						GameTextForPlayer(i, "~w~Usa /paquete para comprar un ~n~~r~paquete de droga", 5000, 5);
					}
				}
			}
			if(TaxiDriver[i] != -1)
			{
				if(GetPlayerVehicleID(i) == GetPlayerVehicleID(TaxiDriver[i]) )
				{
				    if(TaxiTiempo[i] >= 31)
				    {
				        TaxiTiempo[i] = 1;
				        TaxiCosto[i] += TaxiTarifa[TaxiDriver[i]];
				    }
					TaxiTiempo[i] += 1;
					new string[80];
					format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~%d Seg ~w~- $%d", TaxiTiempo[i], TaxiCosto[i]);
					GameTextForPlayer(i, string, 1200, 3);
					GameTextForPlayer(TaxiDriver[i], string, 1200, 3);
					if(TaxiCosto[i] > GetPlayerCash(i))
					{
					    RemovePlayerFromVehicle(i);
					    new Float:slx, Float:sly, Float:slz;
						GetPlayerPos(i, slx, sly, slz);
						SetPlayerPos(i, slx, sly, slz + 2);
					    GameTextForPlayer(i, "~r~No tienes mбs dinero para pagar el taxi!", 4000, 4);
					}
				}
			}
			if(IsPlayerInAnyVehicle(i))
			{
				if(GetPlayerState(i) == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(i, 0);
				else if(Info[i][pWeapons][4] == 0) SetPlayerArmedWeapon(i, 0);
				else SetPlayerArmedWeapon(i, 29);
			}
			if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && JetPack[i] == 0 && Info[i][pAdmin] < 4)
			{
				new string[74 + MAX_PLAYER_NAME];
			    format( string, sizeof( string ), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) es posible que use Cheat de JetPack .", GetPlayerNameEx(i), i);
				ABroadCast( COLOR_YELLOW, string, 2 );
				format(string, sizeof(string), "%s (ID %d) es posible que use Cheat de JetPack.", GetPlayerNameEx(i), i);
				Log("logs/hack.log", string);
			}
			if(IsPlayerInRangeOfPoint(i, 2, 1544.2, -1353.4, 329.4)) { GivePlayerValidWeapon(i, 46, 1); }
		}
	}
}
Ahi les marque las lineas donde supuestamente pasa algo.
Muchas gracias.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)