Server crashing error
#1

Hi,my problem is when i connect to my server and type any of my commands my server.exe turnes off.
Thats it,please help .Thank you.
Reply
#2

What cmd you use, so it crashea? And you use zcmd or what? Check your plugins/includes are up-to-date
Reply
#3

Just updated my includes and same error
Reply
#4

And im using YCMD for commands
Reply
#5

Quote:
Originally Posted by Aleksa15
Посмотреть сообщение
Just updated my includes and same error
Please provide more information when making a thread in this section, we aren't psychics.

Please answer:
  • How are your commands made? (strcmp commands, commands using CallLocalFunction(...) - zcmd, y_commands, etc).
Either way, provide code of either the code under OnPlayerCommandText(...) or commands that make the server cash (if they do).

EDIT:

Quote:
Originally Posted by Aleksa15
Посмотреть сообщение
And im using YCMD for commands
Provide code?
Reply
#6

Ok sry for lack of information im using YCMD.
This is OnplayerCommandText im using:
public OnPlayerCommandPerformed(playerid,cmdtext[ ],success)
{
if(!success) return SCM(playerid,-1,"[OG:RP] "CRVENA"You typed the wrong command | Type /komande for list of commands!");
new string[128]; format(string,sizeof(string),"Player %s | CMD: %s",GetName(playerid),cmdtext); LogKomandi(string);
return 1;
}
And my server doestn crash for 1 special command,it crashes every time i type any of commands
Reply
#7

Quote:
Originally Posted by Aleksa15
Посмотреть сообщение
Ok sry for lack of information im using YCMD.
This is OnplayerCommandText im using:
public OnPlayerCommandPerformed(playerid,cmdtext[ ],success)
{
if(!success) return SCM(playerid,-1,"[OG:RP] "CRVENA"You typed the wrong command | Type /komande for list of commands!");
new string[128]; format(string,sizeof(string),"Player %s | CMD: %s",GetName(playerid),cmdtext); LogKomandi(string);
return 1;
}
And my server doestn crash for 1 special command,it crashes every time i type any of commands
Remove that and leave the commands solely on the server, and see if it still crashes because it shouldn't.
Reply
#8

Don't use YCMD inside OnPlayerCommandText, remove that callback and put your commands outside of OnPlayerCommandText.
Reply
#9

OK that worked thank for your help u got REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)