SA-MP Forums Archive
Retarded question? i think so! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Retarded question? i think so! (/showthread.php?tid=241017)



Retarded question? i think so! - -Rebel Son- - 17.03.2011

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?


Re: Retarded question? i think so! - Marricio - 17.03.2011

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


Re: Retarded question? i think so! - -Rebel Son- - 17.03.2011

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

P.S. Y less, your my hero.


Re: Retarded question? i think so! - Joe Staff - 17.03.2011

no, SendRconCommand("hostname "#SERVER_NAME)


Re: Retarded question? i think so! - -Rebel Son- - 17.03.2011

Still a no go. D:


Re: Retarded question? i think so! - Marricio - 17.03.2011

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


Re: Retarded question? i think so! - -Rebel Son- - 17.03.2011

Server wont even run with them.


Re: Retarded question? i think so! - Marricio - 17.03.2011

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.


Re: Retarded question? i think so! - -Rebel Son- - 17.03.2011

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


Re: Retarded question? i think so! - -Rebel Son- - 17.03.2011

----------------