The game disconnect...in local host???
#1

When i connect to 127.0.01:7777, i should connect my server to my pc, not trought the Internet, right? well, since i wrote this command

if (strcmp(cmdtext, "/hunter", true) == 0)
{
SendClientMessageToAll(0xC0C0C0FF, "%s(player: %d) Has gone to the Hunter Battlefield.");
SetPlayerPos(playerid,8120.1440,-1640.9419,1902.4609);
return 1;
}

actually i don't get any error while compiling...BUT every time i test my command, it seems that the game disconnect (chat doesn't work...); in fact, waiting for a few seconds, it goes "Lost connection to the server. Restarting....". It's as the command /hunter needs to disconnect the game.
Reply
#2

that command should not affect connecting at all, but of course I don't know what is in the script.
try to remove that command and see if it works, if not then try to give more info on when it stopped working.
Reply
#3

Quote:
Originally Posted by Angelo94
When i connect to 127.0.01:7777, i should connect my server to my pc, not trought the Internet, right? well, since i wrote this command

if (strcmp(cmdtext, "/hunter", true) == 0)
{
SendClientMessageToAll(0xC0C0C0FF, "%s(player: %d) Has gone to the Hunter Battlefield.");
SetPlayerPos(playerid,8120.1440,-1640.9419,1902.4609);
return 1;
}

actually i don't get any error while compiling...BUT every time i test my command, it seems that the game disconnect (chat doesn't work...); in fact, waiting for a few seconds, it goes "Lost connection to the server. Restarting....". It's as the command /hunter needs to disconnect the game.
This is a great error.
First format the string, then send it.
Probably the % makes some kind of code error in the server or crashes it!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)