Server crashing error -
Aleksa15 - 22.07.2015
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.
Re: Server crashing error -
fuckingcruse - 22.07.2015
What cmd you use, so it crashea? And you use zcmd or what? Check your plugins/includes are up-to-date
Re: Server crashing error -
Aleksa15 - 22.07.2015
Just updated my includes and same error
Re: Server crashing error -
Aleksa15 - 22.07.2015
And im using YCMD for commands
Re: Server crashing error -
SickAttack - 22.07.2015
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?
Re: Server crashing error -
Aleksa15 - 22.07.2015
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
Re: Server crashing error -
SickAttack - 22.07.2015
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.
Re: Server crashing error -
DarkLored - 22.07.2015
Don't use YCMD inside OnPlayerCommandText, remove that callback and put your commands outside of OnPlayerCommandText.
Re: Server crashing error -
Aleksa15 - 22.07.2015
OK that worked thank for your help u got REP+