Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[TF2/CS:GO] Double Quote Fix


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 489
  • Lokalizacja:AMXX.PL
Offline

Napisano 06.09.2015 08:50

<p>

[TF2/CS:GO] Double Quote Fix
v. 15.0906

This plugin aims to provide a temporary fix bandaid to the issue that exists in CS:GO and TF2, wherein any chat message which is sent through the chat box has all double quote characters ( " ) changed to single quote characters ( ' ). This causes issues when typing commands with arguments enclosed in quotation marks.

The plugin works as follows:
  • The command first listens for all incoming commands that aren't say or say_team, but were triggered through say or say_team. If such a command is detected, we move on to step 2 and 3.
  • If sm_doublequotefix_doubles = 1, the plugin will search for any pair of consecutive single quote characters ( '' ) and change them into a single doublequote character ( " ).
  • If sm_doublequotefix_smartchange = 1, the plugin will attempt to intelligently change any pair of remaining single quotes into double quotes. This will only happen if:
  • Two single quotes are found.
  • The first single quote is either preceded by a space, or is the first character in the argstring.
  • The second single quote is followed by either a space or the null terminator.
The results speak for themselves. Expand the spoiler box below for a demonstration. Notice how the plugin doesn't always get it right.



Spoiler


!rename @me "Derek test"

Derek : !rename @me 'Derek test'
* Derek changed name to Derek test

!rename @me ''derek is testing''

Derek test : !rename @me ''derek is testing''
* Derek test changed name to derek is testing

!rename @me "Derek's a super cool guy"

derek is testing : !rename @me 'Derek's a super cool guy'
* derek is testing changed name to Derek's a super cool guy

!rename @me "I have a ' mark in my name now"

Derek's a super cool guy : !rename @me 'I have a ' mark in my name now'
* Derek's a super cool guy changed name to I have a

!rename @me ''I have a ' mark in my name now''

I have a : !rename @me ''I have a ' mark in my name now''
* I have a changed name to I have a ' mark in my name now




Changelog


Spoiler

  • 15.0906 - First official release
Installation:

To install, simply ensure that your Sourcemod installation is up to date, and place the attached SMX in your plugins folder.

Please also consider installing Updater. This will let you automatically keep your plugins up-to-date.

Compiling:

The plugin requires custom includes. As such, it does not compile here on the forums. Includes required to compile the plugin are:

Downloads:

If you like what you see here, please consider donating~
Dołączona grafika


Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych