SA-MP Forums Archive
Crash server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Crash server (/showthread.php?tid=393479)



Crash server - ko2 - 18.11.2012

Crash server. Please a Gays.
PHP код:
[19:42:39] [debug]  Accessing element at negative index -
[19:42:39] [debugAMX backtrace
[
19:42:39] [debug#0 00056e04 in ?? () from lvdmnew.amx 
[19:42:39] [debug#1 00052198 in public OnPlayerPickUpPickup () from lvdmnew.amx 
[19:42:41] [debugRun time error 4"Array index out of bounds" 
[19:42:41] [debug]  Accessing element at negative index -
[19:42:41] [debugAMX backtrace
[
19:42:41] [debug#0 00056e04 in ?? () from lvdmnew.amx 
[19:42:41] [debug#1 00052198 in public OnPlayerPickUpPickup () from lvdmnew.amx 
[19:43:24] [debugRun time error 4"Array index out of bounds" 
[19:43:24] [debug]  Accessing element at negative index -400 
[19:43:24] [debugAMX backtrace
[
19:43:24] [debug#0 00058a00 in public OnPlayerStateChange () from lvdmnew.amx 
[19:43:28] [debugRun time error 4"Array index out of bounds" 
[19:43:28] [debug]  Accessing element at negative index -400 
[19:43:28] [debugAMX backtrace
[
19:43:28] [debug#0 00058a00 in public OnPlayerStateChange () from lvdmnew.amx 
[19:43:28] [debugRun time error 4"Array index out of bounds" 
[19:43:28] [debug]  Accessing element at negative index -400 
[19:43:28] [debugAMX backtrace
[
19:43:28] [debug#0 00058a00 in public OnPlayerStateChange () from lvdmnew.amx 
[19:43:29] [debugRun time error 4"Array index out of bounds" 
[19:43:29] [debug]  Accessing element at negative index -
PHP код:
public OnPlayerStateChange(playeridnewstateoldstate){ 
    new 
string[128]; 
    if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 522){ 
    
SendClientMessage(playeridCOLOR_GREEN" blabla*:  blabla.");} 
    new 
newcar GetPlayerVehicleID(playerid); 
    
format(stringsizeof(string), "~g~%s",VehicleName[GetVehicleModel(newcar)-400]); 
    
GameTextForPlayer(playerid,string,2500,1); 
    return 
0;} 



Re: Crash server - you10 - 18.11.2012

You need to check if they are in a car or it tries to get VehicleName[-400]


Re: Crash server - ko2 - 18.11.2012

Quote:
Originally Posted by you10
Посмотреть сообщение
You need to check if they are in a car or it tries to get VehicleName[-400]
now check


Re: Crash server - ko2 - 18.11.2012

thanks