YCMD commands stops server - 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: YCMD commands stops server (
/showthread.php?tid=494911)
YCMD commands stops server -
CH | FuDo - 15.02.2014
I converted my gamemode from 0.3x to 0.3z, everything works, I updated the YSI library to 0.3z version. But, when I start my server, using any command stops my server, it just exit the server.
Here the includes which I use:
Код:
#include <a_samp>
#include <a_players>
#include <a_mysql>
#define YSI_NO_MASTER
#include <YSI\y_commands>
#include <YSI\y_ini>
#include <dLog>
#include <sscanf2>
#include <foreach>
#include <streamer>
Any help?
AW: YCMD commands stops server -
Mellnik - 15.02.2014
Код:
#define YSI_NO_MASTER
#include <a_samp>
#include <a_mysql>
#include <YSI\y_iterate>
#include <YSI\y_commands>
#include <YSI\y_master>
#include <YSI\y_ini>
#include <dLog>
#include <sscanf2>
#include <streamer>
Use y_iterate rather than foreach. a_players is already included by a_samp.
Re: YCMD commands stops server -
CH | FuDo - 15.02.2014
Thank you for fast answer, but still the same problem...
AW: YCMD commands stops server -
Mellnik - 15.02.2014
Then install crashdetect and compile your script with the flag "-d3".
When it crashes it should print some debug information.
Re: YCMD commands stops server -
CH | FuDo - 15.02.2014
Find out problem, thank you.
Re: YCMD commands stops server -
ColeMiner - 15.02.2014
Quote:
Originally Posted by CH | FuDo
Find out problem, thank you.
|
Care to share so that others can learn from this? Since you requested free help, it's only fair you give the same.
Re: YCMD commands stops server -
CH | FuDo - 15.02.2014
My apologies, I removed the include dLog, crashdetector showed me that the problem is in one public, where I used function from that inc, so I removed the inc and that function.