PDA

Просмотр полной версии : [Вопрос] По моду



ALIT13
09.02.2015, 15:42
вот я играю играю , а у меня вдруг и мод отключается почему ?

Osetin
09.02.2015, 15:44
Тут экстрасенсов нету, подробнее опишите, после чего именно выключается и тд..

ALIT13
09.02.2015, 16:10
чё тут не понятно , я запустил мод играю , играю пару минут прошло , у меня samp-server сам отключается автоматически , я даже не знал просто играю у меня в игре всё зависает я выхожу смотрю , а samp-server отключён !!!

ALIT13
09.02.2015, 22:02
[02:08:27] [debug] Run time error 4: "Array index out of bounds"
[02:08:27] [debug] Accessing element at index 200 past array upper bound 199
[02:08:27] [debug] AMX backtrace:
[02:08:27] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:28] [debug] Run time error 4: "Array index out of bounds"
[02:08:28] [debug] Accessing element at index 200 past array upper bound 199
[02:08:28] [debug] AMX backtrace:
[02:08:28] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:29] [debug] Run time error 4: "Array index out of bounds"
[02:08:29] [debug] Accessing element at index 200 past array upper bound 199
[02:08:29] [debug] AMX backtrace:
[02:08:29] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:31] [debug] Run time error 4: "Array index out of bounds"
[02:08:31] [debug] Accessing element at index 200 past array upper bound 199
[02:08:31] [debug] AMX backtrace:
[02:08:31] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:32] [debug] Run time error 4: "Array index out of bounds"
[02:08:32] [debug] Accessing element at index 200 past array upper bound 199
[02:08:32] [debug] AMX backtrace:
[02:08:32] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:33] [debug] Run time error 4: "Array index out of bounds"
[02:08:33] [debug] Accessing element at index 200 past array upper bound 199
[02:08:33] [debug] AMX backtrace:
[02:08:33] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:34] [debug] Run time error 4: "Array index out of bounds"
[02:08:34] [debug] Accessing element at index 200 past array upper bound 199
[02:08:34] [debug] AMX backtrace:
[02:08:34] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:35] [debug] Run time error 4: "Array index out of bounds"
[02:08:35] [debug] Accessing element at index 200 past array upper bound 199
[02:08:35] [debug] AMX backtrace:
[02:08:35] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:36] [debug] Run time error 4: "Array index out of bounds"
[02:08:36] [debug] Accessing element at index 200 past array upper bound 199
[02:08:36] [debug] AMX backtrace:
[02:08:36] [debug] #0 000b02d0 in public AutoRepair () from new.amx
[02:08:37] [debug] Run time error 4: "Array index out of bounds"
[02:08:37] [debug] Accessing element at index 200 past array upper bound 199
[02:08:37] [debug] AMX backtrace:
[02:08:37] [debug] #0 000b02d0 in public AutoRepair () from new.amx


Вот как исправить вод код

public AutoRepair()
{
GetMoney();
GzCheck();
UpdateArmsklad();
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(casinSTOL[playerid])SelectTextDraw(playerid, 0x0088FFFF);
if(AntiFloodChat[playerid])AntiFloodChat[playerid] --;
if(AntiFloodComa[playerid])AntiFloodComa[playerid] --;
AFKtime[playerid] ++;
if(AFKtime[playerid] > 3)
{
new mes[25];
format(mes,sizeof(mes),"[AFK] [%d ñåêóíä]",AFKtime[playerid]);
SetPlayerChatBubble(playerid,mes,0x33AA33AA,5.0,1200);
}
if(AFKtime[playerid] > 700 && !PlayerInfo[playerid][pAdmin])
{
SendClientMessage(playerid,COLOR_RED,"Âû áûëè îòñîåäåíåíû îò ñåðâåðà! (AFK)");
J_Kick(playerid);
}
if(PlayerInfo[playerid][pJailed] > 0)
{
if(PlayerInfo[playerid][pJailTime] > 0) PlayerInfo[playerid][pJailTime]--;
if(PlayerInfo[playerid][pJailTime] <= 0)
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 1);
SetPlayerPos(playerid,244.1405,66.2978,1003.6406);
SetPlayerFacingAngle(playerid, 271.5287);
SCM(playerid, -1,"Âàø ñðîê ïðåáûâàíèÿ â òþðüìå - îêîí÷åí.");
}
PlayerInfo[playerid][pJailed] = 0;
PlayerInfo[playerid][pZvezd] = 0;
PlayerInfo[playerid][pJailTime] = 0;
}
}
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Float:ms = (SpeedVehicle(playerid)/8.6)/600;
vMileage[GetPlayerVehicleID(playerid)] += ms;
}
}
for(new i=0; i<GetMaxPlayers(); i++)
{
if(CellTime[i] > 0)
{
if (CellTime[i] == cchargetime)
{
CellTime[i] = 1;
if(Mobile[Mobile[i]] == i) CallCost[i] = CallCost[i]+callcost;
}
CellTime[i] = CellTime[i] +1;
if (Mobile[Mobile[i]] == 255 && CellTime[i] == 5)
{
if(IsPlayerConnected(Mobile[i]))
{
new called[MAX_PLAYER_NAME];
GetPlayerName(Mobile[i], called, sizeof(called));
format(YCMDstr, sizeof(YCMDstr), "Ó %s çâîíèò òåëåôîí", called);
for(new id = 0; id < MAX_PLAYERS; id ++)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(i,x,y,z);
if(IsPlayerInRangeOfPoint(i,10,x,y,z)) PlayerPlaySound(id, 1052, 0.0, 0.0, 0.0);
}
RingTone[Mobile[i]] = 10;
ProxDetector(30.0, Mobile[i], YCMDstr, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
if(CellTime[i] == 0 && CallCost[i] > 0)
{
format(YCMDstr, sizeof(YCMDstr), "~w~CALL cost~n~~r~$%d",CallCost[i]);
PlayerInfo[i][pBank] -= CallCost[i];
GameTextForPlayer(i, YCMDstr, 5000, 1);
CallCost[i] = 0;
}
}
for(new i =0;i<100;i++)
{
if(GZSafeTime[i]>0)
{
GZSafeTime[i] --;
CheckGangWar(i);
if(GZSafeTime[i]==0)
{
foreach (Player, d)
{
PlayerTextDrawHide(d, GangWar[d]);
}
}
}
}

for(new i =0;i<sizeof(FrakCD);i++)
{
if(FrakCD[i] >0)
{
FrakCD[i] --;
if(FrakCD[i] == 0) SendFamilyMessage(i,-1,"Âàøà áàíäà ñíîâà ìîæåò ó÷àñòâîâàòü â çàõâàòå");
}
}
//==========================================================================
for(new c; c<3; c++)
{
if(timeStol[c])
{
timeStol[c] --;
new str[7];
format(str, sizeof str,"~g~%d",timeStol[c]);
foreach(new i : Player)
{
if(casinSTOL[i]-1 == c)GameTextForPlayer(i, str, 1200, 4);
}
if(!timeStol[c])
{
new maxs = 0,cid = -1,pere;
Brosilo[c] = 0;
foreach(new i : Player)
{
if(casinSTOL[i]-1 == c)
{
if(vipalo[i] == maxs)pere = 1;
if(vipalo[i] > maxs)
{
pere = 0; maxs = vipalo[i]; cid = i;
}
}
}
if(pere)
{
timeStol[c] = 30;
foreach(new i : Player)
{
if(casinSTOL[i]-1 == c)
{
if(vipalo[i] != maxs)
{
for(new y; y<5; y++)
{
if(PlayeStol[c][y] == i)
{
TextDrawSetString(SostPlayer[c][y],"--");
break;
}
}
Igraet[c] --;
vipalo[i] = 0;
}
else
{
for(new y; y<5; y++)
{
if(PlayeStol[c][y] == i)
{
TextDrawSetString(SostPlayer[c][y],"++");
break;
}
}
}
}
vipalo[i] = 1;
}//
}
else
{
stavkaStol[c] = 0;
Igraet[c] = 0;
TextDrawSetString(BetBank[c],"Bet: 0~n~Bank: 0");
TextDrawSetString(SostPlayer[1][c],"--");
new strin[70];
format(strin, sizeof strin,"Èãðà çàâåðøåíà. Ïîáåäèòåëü %s",Name(cid));
foreach(new i : Player) {
if(casinSTOL[i]-1 == c)SendClientMessage(i,0xA700D1FF,strin);
vipalo[i] = 0;
}
Givem(-1,cid, (BankStol[c]/100)*90);
format(strin, sizeof strin,"Money: %d",PlayerInfo[cid][pCash]);
PlayerTextDrawSetString(cid,CasinMoney[cid],strin);
TextDrawSetString(SostPlayer[0][c],"--"); TextDrawSetString(SostPlayer[1][c],"--");
TextDrawSetString(SostPlayer[2][c],"--"); TextDrawSetString(SostPlayer[3][c],"--");
TextDrawSetString(SostPlayer[4][c],"--");
BankStol[c] = 0;

}
}
}
}
//==========================================================================
for(new i=0; i<GetMaxPlayers(); i++)
{
if(GetPVarInt(i,"Conv")) OnPlayerInConvoi(i);
if(PlayerInfo[i][pMute] > 0) PlayerInfo[i][pMute] -= 1;
if(PlayerInfo[i][pMute] == 1) send(i,"{34c924}Ìîë÷àíêà ñíÿòà");
if(drtime[i] > 0)
{
drtime[i] = drtime[i] - 1;
}
}
}

L0ndl3m
09.02.2015, 22:09
Выложите инициализацию массива GZSafeTime.

ALIT13
09.02.2015, 22:16
new GZSafeTime[100];

+++ вот ещё что-то

[03:06:31] [debug] Server crashed while executing new.amx
[03:06:31] [debug] AMX backtrace:
[03:06:31] [debug] #0 native fputchar () [00405860] from samp-server.exe
[03:06:31] [debug] Native backtrace:
[03:06:33] [debug] #0 6735155f in Load () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\plugins\crashdetect.DLL
[03:06:33] [debug] #1 67352844 in Load () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\plugins\crashdetect.DLL
[03:06:33] [debug] #2 6735470e in Load () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\plugins\crashdetect.DLL
[03:06:33] [debug] #3 76b20746 in UnhandledExceptionFilter () from C:\Windows\system32\kernel32.dll
[03:06:33] [debug] #4 0049eef6 in ?? () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\samp-server.exe
[03:06:33] [debug] #5 00498331 in ?? () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\samp-server.exe
[03:06:33] [debug] #6 76b0ed6c in BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
[03:06:33] [debug] #7 7750377b in RtlInitializeExceptionChain () from C:\Windows\SYSTEM32\ntdll.dll
[03:06:33] [debug] #8 7750374e in RtlInitializeExceptionChain () from C:\Windows\SYSTEM32\ntdll.dll