05.11.2009, 11:49
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. |
First format the string, then send it.
Probably the % makes some kind of code error in the server or crashes it!