Hostname not fully showing?
#1

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...?
Reply
#2

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

i thought # was used for comments..
Reply
#4

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

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

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();
Reply
#7

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
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)