18.11.2012, 14:50
Crash server. Please a Gays.
PHP код:
[19:42:39] [debug] Accessing element at negative index -1
[19:42:39] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[19:42:41] [debug] Accessing element at negative index -1
[19:42:41] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[19:43:24] [debug] Accessing element at negative index -400
[19:43:24] [debug] AMX backtrace:
[19:43:24] [debug] #0 00058a00 in public OnPlayerStateChange () from lvdmnew.amx
[19:43:28] [debug] Run time error 4: "Array index out of bounds"
[19:43:28] [debug] Accessing element at negative index -400
[19:43:28] [debug] AMX backtrace:
[19:43:28] [debug] #0 00058a00 in public OnPlayerStateChange () from lvdmnew.amx
[19:43:28] [debug] Run time error 4: "Array index out of bounds"
[19:43:28] [debug] Accessing element at negative index -400
[19:43:28] [debug] AMX backtrace:
[19:43:28] [debug] #0 00058a00 in public OnPlayerStateChange () from lvdmnew.amx
[19:43:29] [debug] Run time error 4: "Array index out of bounds"
[19:43:29] [debug] Accessing element at negative index -1
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate){
new string[128];
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522){
SendClientMessage(playerid, COLOR_GREEN, " blabla*: blabla.");}
new newcar = GetPlayerVehicleID(playerid);
format(string, sizeof(string), "~g~%s",VehicleName[GetVehicleModel(newcar)-400]);
GameTextForPlayer(playerid,string,2500,1);
return 0;}