I'm run and server crashed - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I'm run and server crashed (
/showthread.php?tid=643004)
I'm run and server crashed -
Charisma - 11.10.2017
Hello my dude, help about my problem please.
THIS IS CODE ABOUT PROBLEM FOR RUN TIME ERROR 4:
>>
https://pastebin.com/1SmuiJsu
THIS IS CODE ABOUT CRASHED IN SERVER
>>
https://pastebin.com/PpdCSV78
Re: I'm run and server crashed -
Sew_Sumi - 11.10.2017
First thing that stands out is the fact that issuerid is 65535, which means you aren't checking for invalid player ID in OnPlayerTakeDamage, and it's likely to be the same elsewhere in the script.
The fact that it's over and over through the script without any gap in time, would suggest you've got someone messing with your server.
The second crash log, I have no idea about.
Re: I'm run and server crashed -
Charisma - 11.10.2017
Example Code?
Re: I'm run and server crashed -
FreAkeD - 11.10.2017
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Check the example code and
notes on that page.
Re: I'm run and server crashed -
Charisma - 11.10.2017
And the second crash? How to fix that?
Re: I'm run and server crashed -
BigETI - 11.10.2017
Код:
[14:19:50] [debug] AMX backtrace:
[14:19:50] [debug] #0 native strcmp () from samp-server.exe
[14:19:50] [debug] #1 00505ff4 in public OnPlayerLogin (88, 8674320) from IRZSS2.amx
[14:19:50] [debug] #2 0080e25c in public OnDialogResponse (88, 1, 1, -1, 8674320) from IRZSS2.amx
No one knows except you what you're doing with strcmp() in your OnPlayerLogin().