Posts: 1,464
Threads: 90
Joined: Aug 2009
Reputation:
0
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...?
Posts: 341
Threads: 18
Joined: Apr 2010
Reputation:
0
maybe the "#" char is the problem...
Posts: 580
Threads: 26
Joined: Jan 2006
Reputation:
0
i thought # was used for comments..
Posts: 1,464
Threads: 90
Joined: Aug 2009
Reputation:
0
I don't think it is in PAWN...maybe C# (******)?
Posts: 1,498
Threads: 19
Joined: Jun 2009
Reputation:
0
# is commonly used as a comment character in configuration files, that's why you get that effect from the server.cfg file.
Posts: 631
Threads: 58
Joined: Jun 2010
Reputation:
0
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
Posts: 1,464
Threads: 90
Joined: Aug 2009
Reputation:
0
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.