SendRconCommand - 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)
+--- Thread: SendRconCommand (
/showthread.php?tid=621355)
SendRconCommand -
Micko123 - 09.11.2016
Why is this not working
PHP код:
new hostname = strval(inputtext);
new string[20];
format(string, sizeof(string), "hostname %s", hostname);
SendRconCommand(string);
Any ideas??
When I want to set hostname to, lets say, 123456 I get this in log
Код:
[22:46:58] hostname = "MySQL" (string)
?
Re: SendRconCommand -
Pearson - 09.11.2016
PHP код:
new hostname[124];
Re: SendRconCommand -
Micko123 - 09.11.2016
Fixed
It should go like this
PHP код:
new string[35];
format(string, sizeof(string), "hostname %s", inputtext);
SendRconCommand(string);
Re: SendRconCommand -
Pearson - 09.11.2016
uhum
Re: SendRconCommand -
SickAttack - 09.11.2016
Quote:
Originally Posted by Micko123
Fixed
It should go like this
PHP код:
new string[35];
format(string, sizeof(string), "hostname %s", inputtext);
SendRconCommand(string);
|
That what he told you above...