Shunt down after using command
#1

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?
Reply
#2

Show your command
Reply
#3

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;
}
Reply
#4

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.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)