Crash server
#1

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;} 
Reply
#2

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

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

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)