SA-MP Forums Archive
Shunt down after using command - 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: Shunt down after using command (/showthread.php?tid=506090)



Shunt down after using command - Dotayuri - 11.04.2014

Ok so i know you guys can read minds but,
could you at lest tell me a few things that may cause the game mode to shut down after using a command?
there is only 2 errors and that is with "GetVehicle2DZone" but if i comment it out
//GetVehicle2DZone(dfsagd,gadsasgd sa,gsa, IM A SHOE!);
//GetVehicle2DZone(dfsagd,gadsasgd sa,gsa, IM A SHOE!);

no errors but when i go in the game mode i can log in. but if i try to do
/help
the game mode shuts off and i have to click the sever to get it back on why?


Re: Shunt down after using command - awsomedude - 11.04.2014

Show your command


Re: Shunt down after using command - Dotayuri - 11.04.2014

Quote:
Originally Posted by awsomedude
Посмотреть сообщение
Show your command
I didn't post it becasue no matter what command i use it always does that but here is a random one

CMD:b(playerid, params[]) {
new sting[120], text[100];
if(sscanf(params, "s[100]", text)) return SendClientMessage(playerid, -1, "USAGE: /b [TEXT]");
format(sting, sizeof(sting), "(( %s says: %s ))", GetName(playerid), text);
ProxDetector(30.0, playerid, sting, COLLOR_BLUE);
Log("/SH/copy.txt", sting);
return 1;
}


Re: Shunt down after using command - Konstantinos - 11.04.2014

It's due to the function Log.

1) Check if the file handle is valid before writing to/closing the file.
2) Make sure the permissions in scriptfiles folder are set to writeable (+readable).
3) Make sure that the folder exists in scriptfiles if you use any of course.

For information about server crashes and other problems, load crashdetect plugin. It will help you a lot.


Re: Shunt down after using command - Dotayuri - 11.04.2014

Lol I was so sure I made the logs file, oh well thanks!