09.10.2012, 16:36
Hi guys, first time I got this problem. Somewhy CreateVehicle returns an invalid ID (65535) of the vehicle created. Here is what I get in console (I use crashdetect plugin).
The pawn code is very simple...
I have no idea why it is doing so and Im sure its something about this piece of code, because when I remove it there are no errors.
Thanks in advice!
Код:
[19:49:33] [debug] Run time error 4: "Array index out of bounds" [19:49:33] [debug] Accessing element at index 65535 past array upper bound 299 [19:49:33] [debug] AMX backtrace: [19:49:33] [debug] #0 0004341c in ?? () from **.amx [19:49:33] [debug] #1 0004de0c in public Itter_OnGameModeInit () from **.amx [19:49:33] [debug] #2 native CallLocalFunction () [00472260] from samp-server.exe [19:49:33] [debug] #3 00007714 in public zcmd_OnGameModeInit () from **.amx [19:49:33] [debug] #4 native CallLocalFunction () [00472260] from samp-server.exe [19:49:33] [debug] #5 00006d18 in public SSCANF_OnGameModeInit () from **.amx [19:49:33] [debug] #6 native CallLocalFunction () [00472260] from samp-server.exe [19:49:33] [debug] #7 00000ff4 in public Streamer_OnGameModeInit () from **.amx [19:49:33] [debug] #8 native CallLocalFunction () [00472260] from samp-server.exe [19:49:33] [debug] #9 00000560 in public OnGameModeInit () from **.amx
pawn Код:
new
id = CreateVehicle(model, x, y, z, a, color1, color2, 0);
Thanks in advice!