Detaljan opis problema: Radim na athlone modu. I zavrsio sam sa skriptanjem krenuo da radim na srw orge... i kada ubacim mapu i udjem na srw crasha. Bilo sta da ubacim crash
Dio skripte: mape
Neke slike/video za lakse dobivanje pomoci(neobavezno): ne treba
sto pise u server logu
ovako pise evo u server logu
[pawn][12:11:43]
[12:11:43]
[12:11:43]
[12:11:43] =======================================
[12:11:43] | |
[12:11:43] | YSI version 3.09.0684 |
[12:11:43] | By Alex "Y_Less" Cole |
[12:11:43] | |
[12:11:43] =======================================
[12:11:43]
[12:11:43]
[12:11:43]
[12:11:46] [debug] Run time error 4: "Array index out of bounds"
[12:11:46] [debug] Accessing element at negative index -1
[12:11:46] [debug] AMX backtrace:
[12:11:46] [debug] #0 003868d0 in public CB_OnGameModeInit () from bmhp.amx
[12:11:46] [debug] #1 0001a84c in public zcmd_OnGameModeInit () from bmhp.amx
[12:11:46] [debug] #2 native CallLocalFunction () from samp-server.exe
[12:11:46] [debug] #3 00018e18 in public Itter_OnGameModeInit () from bmhp.amx
[12:11:46] [debug] #4 native CallLocalFunction () from samp-server.exe
[12:11:46] [debug] #5 00017c2c in ?? () from bmhp.amx
[12:11:46] [debug] #6 0000ba08 in public ScriptInit_OnGameModeInit () from bmhp.amx
[12:11:46] [debug] #7 000063f8 in public SSCANF_OnGameModeInit () from bmhp.amx
[12:11:46] [debug] #8 00000754 in public OnGameModeInit () from bmhp.amx
[12:11:46] {FF0000}B{FFFFFF}L{FF0000}O{FFFFFF}O{FF0000}D{FFFFFF}S{FF0000}T{FFFFFF}R{FF0000}E{FFFFFF}E{FF0000}T HP - Loaded...
[12:11:46] Number of vehicle models: 36
[12:15:38] [connection] 192.168.1.9:61067 requests connection cookie.
[12:15:39] [connection] incoming connection: 192.168.1.9:61067 id: 0
[12:15:40] [join] Khalifa has joined the server (0:192.168.1.9)
[12:18:04] [part] Khalifa has left the server (0:0)
[/pawn]
Postavi ovde OnGameModeInit
TO je i meni isti problem ali mi nista ne pise u srv log
Oh boze, pa pise ti sta je problem. Array index out of bounds. Compile skriptu sa -d3 parametrom da ti ispise tacno liniju gde se nalazi error idi na tu liniju i fixaj. Iskaces iz niza, ako ti vec piseta je error zasto je tesko popraviti ga?