Retarded question? i think so!
#1

Ok, so i got.

pawn Код:
#define SERVER_MAP      "Unavailable"
#define SERVER_NAME     "Unavailable"
#define SERVER_SITE     "Unavailable"
and

pawn Код:
SendRconCommand("hostname" SERVER_NAME);
SendRconCommand("mapname" SERVER_MAP);
SendRconCommand("weburl" SERVER_SITE);
i guess it's not sending, Neither of them work. Any ideas?
Reply
#2

pawn Код:
new str[128];
    format(str, 64, "hostname %s", SERVER_NAME);
    SendRconCommand(str);
    format(str, 64, "mapname %s", SERVER_MAP);
    SendRconCommand(str);
    format(str, 64, "weburl %s", SERVER_SITE);
    SendRconCommand(str);
Not tested thought
Reply
#3

Ok so, change them rcon commands to "host name" instead of "hostname?"

P.S. Y less, your my hero.
Reply
#4

no, SendRconCommand("hostname "#SERVER_NAME)
Reply
#5

Still a no go. D:
Reply
#6

pawn Код:
new str[128];
    format(str, 64, "hostname %s", SERVER_NAME);
    SendRconCommand(str);
    format(str, 64, "mapname %s", SERVER_MAP);
    SendRconCommand(str);
    format(str, 64, "weburl %s", SERVER_SITE);
    SendRconCommand(str);
Try that
Reply
#7

Server wont even run with them.
Reply
#8

pawn Код:
new str[64];
    format(str, 64, "hostname %s", SERVER_NAME);
    SendRconCommand(str);
    format(str, 64, "mapname %s", SERVER_MAP);
    SendRconCommand(str);
    format(str, 64, "weburl %s", SERVER_SITE);
    SendRconCommand(str);
Fixed a little error and tested. Working... It should work, eh.
Reply
#9

Alrighty, that one works, Cell size is a bit large tho D:
Reply
#10

----------------
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)