SA-MP Forums Archive
Problema crash. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Problema crash. (/showthread.php?tid=579222)



Problema crash. - ronaldfa - 25.06.2015

Quote:

[19:48:38] [debug] #1 00321e54 in public severTimers@_yT () at C:\Users\Administrador\Desktop\ExtremoRP\gamemodes \ExtremoRP.pwn:52123
[19:48:39] [debug] Run time error 4: "Array index out of bounds"
[19:48:39] [debug] Accessing element at index 65535 past array upper bound 499
[19:48:39] [debug] AMX backtrace:
[19:48:39] [debug] #0 00322378 in severTimers () at C:\Users\Administrador\Desktop\ExtremoRP\gamemodes \ExtremoRP.pwn:52145
[19:48:39] [debug] #1 00321e54 in public severTimers@_yT () at C:\Users\Administrador\Desktop\ExtremoRP\gamemodes \ExtremoRP.pwn:52123
[19:48:40] [debug] Server crashed while executing ExtremoRP.amx
[19:48:40] [debug] AMX backtrace:
[19:48:40] [debug] #0 00000038 in INI_AddToBuffer (INI:file=53, name[]=@00000000 "", data[]=@02b2efdc "0000001435177875") at
Estuve viendo temas relacionados con este error del SeverTimers y ninguno llega a una conclusiуn


El problema aquн es que el server se apaga en cierta hora (en la noche)...

La linea 52123 que me da el error es esta:
PHP код:
timer severTimers[1000]() 
їAlguien sabe porque me da crash?.


Re: Problema crash. - Su37Erich - 25.06.2015

Hola
De seguro es un problema con el y_ini
Debes modificar el include y buscar en el la funciуn: valstr y reemplazarla por format("%d", ...
El crash es debido a esto:
Quote:

Passing a high value to this function can cause the server to freeze/crash. Fixes are available. Below is a fix that can be put straight in to your script (before valstr is used anywhere). fixes.inc includes this fix.

https://sampwiki.blast.hk/wiki/Valstr