[Urgent] How to fix this crash?
#1

Good day users sa-mp.com

Recently encountered such a problem:
In the same place I had the server displays a message about the beautiful, here are its contents:

PHP код:
SA-MP 0.3e
Exception At Address
0x0044A503
Registers
:
EAX0x00000000 EBX0x00000800 ECX0x0B3DD158 EDX0x0085BB01
ESI
0x0B3DD158 EDI0x0B3DD158 EBP0x0022FD94 ESP0x0022FCF0
EFLAGS
0x00010202
Stack
:
+
00000x0A5B5564   0x0A5E0D48   0x00448B16   0x0A5B5564
+00100x005A2B71   0x005A2B7F   0x00000000   0x0A5B5564
+00200x00000800   0x469C4000   0x02FE7DA9   0x00000000
+00300x0A5E0D48   0x0022FD94   0x0022FD3C   0x00000800
+00400x00004BA2   0x0A5E0D48   0x0086D168   0x0056872C
+00500x00000001   0x97056AC7   0x00000093   0x0053C09A
+00600x0000001A   0x97052DF4   0x00000000   0x776BC280
+00700x02FB0BF6   0x97052DF4   0x02FE7986   0x0000001A
+00800x97052DF4   0x00000000   0x03A62918   0x0022FD6C
+00900x0022F8FC   0x0022FF78   0x02FFBCD4   0x030209F8
+00A00x00000001   0x76A580E0   0x0053E986   0x00000001
+00B00x00000003   0x00000001   0x0053ECC2   0x00000001
+00C00x00619B71   0x0000001A   0x00000001   0x00000001
+00D00x0000000A   0x00748DA0   0x0000001A   0x00000001
+00E00x776BD8E3   0x00000000   0x0022FF88   0x7FFD9000
+00F00x016C0000   0x4F170529   0x016C10F0   0x00000008
+01000x00000100   0x00000008   0x00000102   0x43C80000
+01100x43960000   0x00000000   0x00000000   0x00000320
+01200x00000258   0x00000000   0x00000001   0x001B0AC6
+01300x00000200   0x00000000   0x012C0190   0x04C8AF2B
+01400x00000190   0x0000012C   0x0000002C   0x00400000
+01500x0369FF28   0x776BD8E3   0x00000000   0x0022FF88
+01600x585D4437   0x00400000   0x008246EB   0x776BD8E3
+01700x00000000   0x008246F1   0x00400000   0x00000000
+01800x018E20E6   0x0000000A   0x00000094   0x00000006
+01900x00000001   0x00001DB1   0x00000002   0x76726553
+01A00x20656369   0x6B636150   0x00003120   0x00000000
+01B00x00000000   0x00000000   0x00000000   0x00000000
+01C00x00000000   0x00000000   0x00000000   0x00000000
+01D00x00000000   0x00000000   0x00000000   0x00000000
+01E00x00000000   0x00000000   0x00000000   0x00000000
+01F00x00000000   0x00000000   0x00000000   0x00000000
+02000x00000000   0x00000000   0x00000000   0x00000000
+02100x00000000   0x00000000   0x00824588   0x00000000
+02200x00000000   0x7FFD9000   0xC0000005   0x00000000
+02300x018E20E6   0x00000044   0x018FC120   0x018FA5D8
+02400x018FC130   0x00000000   0x00000000   0x00000000
+02500x00000000   0x00000000   0x00000000   0x00000000
+02600x00000000   0x00000000   0x00000000   0xFFFFFFFF
+02700xFFFFFFFF   0xFFFFFFFF   0x00000000   0x00000000
SCM Op
0x685lDbg0
Game Version
US 1.0
State Information
Ped Context
Here is the log file server plugin issued CrashDetected:
PHP код:
[04/05/2014 10:21:53] [debugRun time error 4"Array index out of bounds"
[04/05/2014 10:21:53] [debug]  Accessing element at index 4 past array upper bound 3
[04/05/2014 10:21:53] [debugAMX backtrace:
[
04/05/2014 10:21:53] [debug#0 000acb68 in public S@@_OnPlayerStateChange (0x00000000, 0x00000002, 0x00000001, 0x00000001) from new.amx
[04/05/2014 10:21:53] [debug#1 native CallLocalFunction () [00472260] from samp-server-cr.exe
[04/05/2014 10:21:53] [debug#2 0000a3ac in public OnPlayerStateChange (0x00000000, 0x00000002, 0x00000001) from new.amx 
How to fix this problem?
In advance, thank you for that responded very hope for your help.
Reply
#2

show us
OnPlayerStateChange
Reply
#3

Quote:
Originally Posted by superrobot48
Посмотреть сообщение
show us
OnPlayerStateChange
Here you go:
http://pastebin.com/JQQGmuUC
Reply
#4

Show us how u defines these
pawn Код:
OnTaxiAsPassenger
IsABike
avisado
btw any compiling erors?
Reply
#5

I hope that threw you need.

new OnTaxiAsPassenger[MAX_PLAYERS];

stock IsABike(vehicleid)
{
new result;
new model = GetVehicleModel(vehicleid);
switch(model)
{
case 461, 462, 463, 468, 471, 521, 522, 581, 586: result = model;
default: result = 0;
}
return result;
}

new avisado[MAX_PLAYERS];


No errors when compiling
Reply
#6

Look at this post please
https://sampforum.blast.hk/showthread.php?tid=347895
Reply
#7

It's probably in this loop:
pawn Код:
for(new i=0; i<5; i++)
If the size of DMVcar array is 4, then change the "5" to "4" else use debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
Reply
#8

Now log in now generally does not display any data.
Changed 5 on 4 crash and remained
Reply
#9

Compile with debug info I mentioned to my previous post. It will print the exact line.
Reply
#10

That kind of information issued pawno:

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 14332 bytes
Code size: 1215992 bytes
Data size: 2611884 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 3858592 bytes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)