SA-MP Forums Archive
Hostname not fully showing? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Hostname not fully showing? (/showthread.php?tid=272025)



Hostname not fully showing? - Toni - 26.07.2011

In my server.cfg text file, I tried setting my host name to "Apollo Gaming | #6 | Some text here", but when the server starts up and I view it from the SA:MP client, it shows up as only:

"Apollo Gaming |"

I tried a temporary fix around this, and it worked. Inside my script I simply just did SendRconCommand("hostname Apollo Gaming | #6 | Some text here" and it worked!

Any idea why this would happen? Is it some like string escape error or something...?


Re: Hostname not fully showing? - Stefan_Toretto - 27.07.2011

maybe the "#" char is the problem...


Re: Hostname not fully showing? - JernejL - 01.08.2011

i thought # was used for comments..


Re: Hostname not fully showing? - Toni - 01.08.2011

I don't think it is in PAWN...maybe C# (******)?


Re: Hostname not fully showing? - iLinx - 01.08.2011

# is commonly used as a comment character in configuration files, that's why you get that effect from the server.cfg file.


Re: Hostname not fully showing? - Toni - 01.08.2011

Quote:
Originally Posted by iLinx
View Post
# is commonly used as a comment character in configuration files, that's why you get that effect from the server.cfg file.
Ah, bummer. I guess the only way to resolve is setting it via SendRconCommand();


Re: Hostname not fully showing? - dowster - 02.08.2011

Wouldn't there also be another character you could place in-front of it to get it to read the character, or encase the whole hostname in a string possibly? i have never tried it but it may be worth a shot


Re: Hostname not fully showing? - Toni - 03.08.2011

I doubt it, it's just like any normal cfg file I'm guessing. Say you were to open server.cfg with Notepad++ (with syntax/commenting highlighting), and place the server name. If you were to try to type a line, # would cut it off and mark the sentence behind # in green, hence now I see why it wouldn't work.