You are not logged in.

haeufi

Trainee

  • "haeufi" started this thread

Posts: 159

Occupation: Student

wcf.user.option.userOption53: Ja

  • Send private message

1

Thursday, August 7th 2014, 6:32pm

AdsQL Chat neue Zeile

Hey Leute,

ich hab mal wieder ein Problemchen und hoffe, dass ihr mir helfen wollt.

Ich habe vor ein paar Tagen wegen der Wartungsfreundlichkeit das Plugin AdsQL eingerichtet. Es funktioniert soweit auch.

Jetzt hab ich aber ein kleines Formatierungsproblem: Ich möchte eine Chat Nachricht erstellen, die Zeilenumbrüche besitzt. (geht um die empfohlenen rates für den Server)
Damit das ganze übersichtlich bleibt.
Die Nachricht habe ich so eingegeben:

Source code

1
						Empfohlene Netsettings: \ncl_cmdrate 128 \ncl_updaterate 128 \nrate 128000


Jetzt macht mir das Plugin keine Zeilenumbrüche.

Ich habe auch schon probiert das \n an jeder Stelle zu doppeln, hat aber auch nichts gebracht. In der Datenbank wird das \n ebenfalls korrekt eingetragen, nur ingame angezeigt wird es nicht. Zu dem Problem habe ich schon ein Forenthema gefunden, wo jemand meint:

Quoted

ReadFileLine doesn't truncate newline characters... you need to
TrimString it first... [...]
Kann mir jemand, der das Plugin vielleicht selbst nutzt, eventuell mit diesem Problem helfen?

Danke schon mal!
Team Niederbayern - Seit 2005 DEINE CSS-Community, egal ob Default Maps oder Turbo Gungame Deathmatch mit NoBlockoder dust2only , da ist für jeden was dabei. Besucht uns auf Server und Homepage!
Jetzt NEU
: CS:GO - Classic Competitive (176.9.107.110:27080), de_dust2 only (176.9.107.110:27085) und de_dust2_se Deathmatch (176.9.107.110:27090)

haeufi

Trainee

  • "haeufi" started this thread

Posts: 159

Occupation: Student

wcf.user.option.userOption53: Ja

  • Send private message

2

Sunday, August 10th 2014, 11:54am

Bitte nicht alle auf einmal.... :keinahn:
Team Niederbayern - Seit 2005 DEINE CSS-Community, egal ob Default Maps oder Turbo Gungame Deathmatch mit NoBlockoder dust2only , da ist für jeden was dabei. Besucht uns auf Server und Homepage!
Jetzt NEU
: CS:GO - Classic Competitive (176.9.107.110:27080), de_dust2 only (176.9.107.110:27085) und de_dust2_se Deathmatch (176.9.107.110:27090)

Impact

Super Moderator

Posts: 1,276

wcf.user.option.userOption53: Nein

  • Send private message

3

Sunday, August 10th 2014, 3:57pm

Probier das hier mal.
Impact has attached the following files:
  • adsql.sp (33.48 kB - 109 times downloaded - latest: Sep 17th 2025, 6:45pm)
  • adsql.smx (23.23 kB - 91 times downloaded - latest: Sep 18th 2025, 10:15pm)

haeufi

Trainee

  • "haeufi" started this thread

Posts: 159

Occupation: Student

wcf.user.option.userOption53: Ja

  • Send private message

4

Sunday, August 10th 2014, 7:25pm

Danke schon mal, Impact, ich weiß noch nicht, wann ich es ausprobieren kann.

Was hast du im Sourcecode jetzt verändert? (zum nachvollziehen) Zeilenangaben würden mir genügen.
Team Niederbayern - Seit 2005 DEINE CSS-Community, egal ob Default Maps oder Turbo Gungame Deathmatch mit NoBlockoder dust2only , da ist für jeden was dabei. Besucht uns auf Server und Homepage!
Jetzt NEU
: CS:GO - Classic Competitive (176.9.107.110:27080), de_dust2 only (176.9.107.110:27085) und de_dust2_se Deathmatch (176.9.107.110:27090)

Impact

Super Moderator

Posts: 1,276

wcf.user.option.userOption53: Nein

  • Send private message

5

Sunday, August 10th 2014, 9:45pm

Sorry, ich hatte gehofft du diffst dir den Sourcecode.
Ich habe Zeile 747 bis 751 auskommentiert.

Spoiler Spoiler


PHP Source code

1
2
3
4
5
//if (StrContains(sText, "\\n")          != -1) 
//{
//    Format(sBuffer, sizeof(sBuffer), "%c", 13);
//    ReplaceString(sText, sizeof(sText), "\\n",          sBuffer);
//}


haeufi

Trainee

  • "haeufi" started this thread

Posts: 159

Occupation: Student

wcf.user.option.userOption53: Ja

  • Send private message

6

Thursday, November 13th 2014, 12:45am

Habe das Plugin jetzt mal ausprobiert, aber es zeigt jetzt nur das "\n" im Chat als Klartext an...

Vielleich könnte man das Thema wieder eröffnen, danke!
Team Niederbayern - Seit 2005 DEINE CSS-Community, egal ob Default Maps oder Turbo Gungame Deathmatch mit NoBlockoder dust2only , da ist für jeden was dabei. Besucht uns auf Server und Homepage!
Jetzt NEU
: CS:GO - Classic Competitive (176.9.107.110:27080), de_dust2 only (176.9.107.110:27085) und de_dust2_se Deathmatch (176.9.107.110:27090)

Similar threads