Вход

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



BaBuIIIkaDrifteR
17.02.2015, 07:08
Возникла у меня проблема до этого играл не замечал, сегодня решил подключить крашделект и обноружил такие краши когда захожу на сервер.
Помогите исправить в чем проблема?

public OnPlayerUpdate(playerid)
{

if(SpecAd[playerid] != INVALID_PLAYER_ID) //Строка 3162
{ //Строка 3163
new NY[600],Float:DDEDH,Float:carhp,ipe_[18]; //Строка 3164
new giveplayerid = SpecAd[playerid],Float:Xal,Float:Yal,Float:Zal; //Строка 3165
if(IsPlayerInAnyVehicle(giveplayerid)) GetVehicleVelocity(GetPlayerVehicleID(giveplayerid),Xal,Yal,Zal); //Строка 3166
else GetPlayerVelocity(giveplayerid,Xal,Yal,Zal); //Строка 3167
new Float:speed7 = floatsqroot(floatpower(floatabs(Xal), 2.0) + floatpower(floatabs(Yal), 2.0) + floatpower(floatabs(Zal), 2.0)) * 170.0; //Строка 3168
new vehicleid = GetPlayerVehicleID(SpecAd[playerid]); //Строка 3169
GetVehicleHealth(vehicleid, carhp); //Строка 3170
GetPlayerHealth(giveplayerid, DDEDH); //Строка 3171
GetPlayerIp(giveplayerid,ipe_,18); //Строка 3172
format(NY,sizeof(NY),"~n~~H~~R~Name: ~H~~W~%s",pNick(giveplayerid)); //Строка 3173
format(NY,sizeof(NY),"~n~~H~~R~Number: ~H~~W~%d",Player[giveplayerid][pNumG]);//Строка 3174
format(NY,sizeof(NY),"~n~~H~~R~IP: ~H~~W~%s",ipe_);//Строка 3175
format(NY,sizeof(NY),"~n~~H~~R~Ping: ~H~~W~%d",GetPlayerPing(giveplayerid));//Строка 3176
format(NY,sizeof(NY),"~n~~H~~R~Speed: ~H~~W~%.0f",speed7);//Строка 3177
format(NY,sizeof(NY),"~n~~H~~R~CarHP: ~H~~W~%.0f",carhp);//Строка 3178
format(NY,sizeof(NY),"~n~~H~~R~Health: ~H~~W~%.0f",DDEDH);//Строка 317
format(NY,sizeof(NY),"~n~~H~~R~Warns: ~H~~W~%d",Player[giveplayerid][pWarns]);//Строка 3180
format(NY,sizeof(NY),"~n~~H~~R~Money: ~H~~G~%d$",Player[giveplayerid][pMoney]);//Строка 3181
PlayerTextDrawSetString(playerid,TEXTRECON[playerid],NY);//Строка 3182
}//Строка 3183
return 1;
}

[06:00:29] [join] Roman has joined the server (0:127.0.0.1)
[06:00:31] [debug] Run time error 4: "Array index out of bounds"
[06:00:31] [debug] Accessing element at index 999 past array upper bound 49
[06:00:31] [debug] AMX backtrace:
[06:00:31] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:32] [debug] Run time error 4: "Array index out of bounds"
[06:00:32] [debug] Accessing element at index 999 past array upper bound 49
[06:00:32] [debug] AMX backtrace:
[06:00:32] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:32] [debug] Run time error 4: "Array index out of bounds"
[06:00:32] [debug] Accessing element at index 999 past array upper bound 49
[06:00:32] [debug] AMX backtrace:
[06:00:32] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:32] [debug] Run time error 4: "Array index out of bounds"
[06:00:32] [debug] Accessing element at index 999 past array upper bound 49
[06:00:32] [debug] AMX backtrace:
[06:00:32] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:33] [debug] Run time error 4: "Array index out of bounds"
[06:00:33] [debug] Accessing element at index 999 past array upper bound 49
[06:00:33] [debug] AMX backtrace:
[06:00:33] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:33] [debug] Run time error 4: "Array index out of bounds"
[06:00:33] [debug] Accessing element at index 999 past array upper bound 49
[06:00:33] [debug] AMX backtrace:
[06:00:33] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:34] [debug] Run time error 4: "Array index out of bounds"
[06:00:34] [debug] Accessing element at index 999 past array upper bound 49
[06:00:34] [debug] AMX backtrace:
[06:00:34] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:34] [debug] Run time error 4: "Array index out of bounds"
[06:00:34] [debug] Accessing element at index 999 past array upper bound 49
[06:00:34] [debug] AMX backtrace:
[06:00:34] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:34] [debug] Run time error 4: "Array index out of bounds"
[06:00:34] [debug] Accessing element at index 999 past array upper bound 49
[06:00:34] [debug] AMX backtrace:
[06:00:34] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:34] [debug] Run time error 4: "Array index out of bounds"
[06:00:34] [debug] Accessing element at index 999 past array upper bound 49
[06:00:34] [debug] AMX backtrace:
[06:00:34] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:34] [debug] Run time error 4: "Array index out of bounds"
[06:00:34] [debug] Accessing element at index 999 past array upper bound 49
[06:00:34] [debug] AMX backtrace:
[06:00:34] [debug] #0 00188f10 in public OnPlayerUpdate (playerid=0) at C:\Users\Администратор\Desktop\My Documents\Energy Drift v 1.0.1\gamemodes\ED2015.pwn:3173
[06:00:35] [part] Roman has left the server (0:1)

Gressie
17.02.2015, 12:02
кинь pNick свой...

BaBuIIIkaDrifteR
17.02.2015, 14:34
кинь pNick свой...

Он не причем, если убрать pNick будет крашить следущая строка 3174, если убрать ее будет крашить 3175 и 3181 так.

BaBuIIIkaDrifteR
17.02.2015, 18:08
Кто нибудь знает в чем проблема?

Mazzilla
17.02.2015, 18:09
В каком-то месте мода переменной SpecAd[playerid] установлено значение 999.

BaBuIIIkaDrifteR
17.02.2015, 18:14
В каком-то месте мода переменной SpecAd[playerid] установлено значение 999.

да есть! 999 и 9999 надо на 0 сменить?
В onplayer connect : SpecAd[playerid] = 9999; Остальные: SpecAd[playerid] = 999;

Mazzilla
17.02.2015, 18:27
SpecAd[playerid] = INVALID_PLAYER_ID;

BaBuIIIkaDrifteR
17.02.2015, 18:48
SpecAd[playerid] = INVALID_PLAYER_ID;

Это заменить где 9999 и 999 ?

- - - Добавлено - - -

Закрыто!