SA:MP sscanf plugin originally made by @Y-Less
[*]
when there aren't enough parameters.[*]
again.(*)
for dynamic default values.@kustom()
decorator for kustom specifiers.amx_Register
and find SetPlayerName
.MATCH_NAME_SIMILARITY
).MATCH_NAME_FIRST
to revert best name match behaviour.MATCH_NAME_PARTIAL
.SSCANF_TextSimilarity
for best string candidate processing.SSCANF_GetSimilarString
for best string candidate processing.SSCANF_GetSimilarValue
for best string candidate processing.OnPlayerNameChange
in the open.mp component code version.SSCANF_Levenshtein
internally to use direct AMX access.sscanf
before including it.SSCANF_Levenshtein
for better string candidate processing.SSCANF_GetClosestString
for better string candidate processing.SSCANF_GetClosestValue
for better string candidate processing.SSCANF_NO_K_VEHICLE
to disable the default k<vehicle>
specifier code.SSCANF_NO_K_WEAPON
to disable the default k<weapon>
specifier code."x'!'"
for example.SSCANF_VERSION
for compile-time checks.PawnSScanf
function from dll to other plugins.SSCANF_SetOption()
and SSCANF_GetOption()
for more control of options.SSCANF_VERSION
and SSCANF_Version()
to compare include and plugin versions.m
for colours (ran out of useful letters).[*]
support.[(32)]
).z
and Z
for packed strings (thus officially removing their deprecated optional use).p,
warnings - its now purely an error.k
in arrays.k
to consume the rest of the line (like strings) when they are the last specifier.u
wasn't working correctly after a server restart.[*]
when there aren't enough parameters.[*]
again.(*)
for dynamic default values.@kustom()
decorator for kustom specifiers.amx_Register
and find SetPlayerName
.MATCH_NAME_SIMILARITY
).MATCH_NAME_FIRST
to revert best name match behaviour.MATCH_NAME_PARTIAL
.SSCANF_TextSimilarity
for best string candidate processing.SSCANF_GetSimilarString
for best string candidate processing.SSCANF_GetSimilarValue
for best string candidate processing.OnPlayerNameChange
in the open.mp component code version.SSCANF_Levenshtein
internally to use direct AMX access.sscanf
before including it.SSCANF_Levenshtein
for better string candidate processing.SSCANF_GetClosestString
for better string candidate processing.SSCANF_GetClosestValue
for better string candidate processing.SSCANF_NO_K_VEHICLE
to disable the default k<vehicle>
specifier code.SSCANF_NO_K_WEAPON
to disable the default k<weapon>
specifier code."x'!'"
for example.SSCANF_VERSION
for compile-time checks.PawnSScanf
function from dll to other plugins.SSCANF_SetOption()
and SSCANF_GetOption()
for more control of options.SSCANF_VERSION
and SSCANF_Version()
to compare include and plugin versions.m
for colours (ran out of useful letters).[*]
support.[(32)]
).z
and Z
for packed strings (thus officially removing their deprecated optional use).p,
warnings - its now purely an error.k
in arrays.k
to consume the rest of the line (like strings) when they are the last specifier.u
wasn't working correctly after a server restart.[*]
when there aren't enough parameters.[*]
again.(*)
for dynamic default values.@kustom()
decorator for kustom specifiers.amx_Register
and find SetPlayerName
.MATCH_NAME_SIMILARITY
).MATCH_NAME_FIRST
to revert best name match behaviour.MATCH_NAME_PARTIAL
.SSCANF_TextSimilarity
for best string candidate processing.SSCANF_GetSimilarString
for best string candidate processing.SSCANF_GetSimilarValue
for best string candidate processing.OnPlayerNameChange
in the open.mp component code version.SSCANF_Levenshtein
internally to use direct AMX access.sscanf
before including it.SSCANF_Levenshtein
for better string candidate processing.SSCANF_GetClosestString
for better string candidate processing.SSCANF_GetClosestValue
for better string candidate processing.SSCANF_NO_K_VEHICLE
to disable the default k<vehicle>
specifier code.SSCANF_NO_K_WEAPON
to disable the default k<weapon>
specifier code."x'!'"
for example.SSCANF_VERSION
for compile-time checks.PawnSScanf
function from dll to other plugins.SSCANF_SetOption()
and SSCANF_GetOption()
for more control of options.SSCANF_VERSION
and SSCANF_Version()
to compare include and plugin versions.m
for colours (ran out of useful letters).[*]
support.[(32)]
).z
and Z
for packed strings (thus officially removing their deprecated optional use).p,
warnings - its now purely an error.k
in arrays.k
to consume the rest of the line (like strings) when they are the last specifier.u
wasn't working correctly after a server restart.[*]
again.(*)
for dynamic default values.@kustom()
decorator for kustom specifiers.amx_Register
and find SetPlayerName
.MATCH_NAME_SIMILARITY
).MATCH_NAME_FIRST
to revert best name match behaviour.MATCH_NAME_PARTIAL
.SSCANF_TextSimilarity
for best string candidate processing.SSCANF_GetSimilarString
for best string candidate processing.SSCANF_GetSimilarValue
for best string candidate processing.OnPlayerNameChange
in the open.mp component code version.SSCANF_Levenshtein
internally to use direct AMX access.sscanf
before including it.SSCANF_Levenshtein
for better string candidate processing.SSCANF_GetClosestString
for better string candidate processing.SSCANF_GetClosestValue
for better string candidate processing.SSCANF_NO_K_VEHICLE
to disable the default k<vehicle>
specifier code.SSCANF_NO_K_WEAPON
to disable the default k<weapon>
specifier code."x'!'"
for example.SSCANF_VERSION
for compile-time checks.PawnSScanf
function from dll to other plugins.SSCANF_SetOption()
and SSCANF_GetOption()
for more control of options.SSCANF_VERSION
and SSCANF_Version()
to compare include and plugin versions.m
for colours (ran out of useful letters).[*]
support.[(32)]
).z
and Z
for packed strings (thus officially removing their deprecated optional use).p,
warnings - its now purely an error.k
in arrays.k
to consume the rest of the line (like strings) when they are the last specifier.u
wasn't working correctly after a server restart.(*)
for dynamic default values.@kustom()
decorator for kustom specifiers.amx_Register
and find SetPlayerName
.MATCH_NAME_SIMILARITY
).MATCH_NAME_FIRST
to revert best name match behaviour.MATCH_NAME_PARTIAL
.SSCANF_TextSimilarity
for best string candidate processing.SSCANF_GetSimilarString
for best string candidate processing.SSCANF_GetSimilarValue
for best string candidate processing.OnPlayerNameChange
in the open.mp component code version.SSCANF_Levenshtein
internally to use direct AMX access.sscanf
before including it.SSCANF_Levenshtein
for better string candidate processing.SSCANF_GetClosestString
for better string candidate processing.SSCANF_GetClosestValue
for better string candidate processing.SSCANF_NO_K_VEHICLE
to disable the default k<vehicle>
specifier code.SSCANF_NO_K_WEAPON
to disable the default k<weapon>
specifier code."x'!'"
for example.SSCANF_VERSION
for compile-time checks.PawnSScanf
function from dll to other plugins.SSCANF_SetOption()
and SSCANF_GetOption()
for more control of options.SSCANF_VERSION
and SSCANF_Version()
to compare include and plugin versions.m
for colours (ran out of useful letters).[*]
support.[(32)]
).z
and Z
for packed strings (thus officially removing their deprecated optional use).p,
warnings - its now purely an error.k
in arrays.k
to consume the rest of the line (like strings) when they are the last specifier.u
wasn't working correctly after a server restart.MATCH_NAME_SIMILARITY
).MATCH_NAME_FIRST
to revert best name match behaviour.MATCH_NAME_PARTIAL
.SSCANF_TextSimilarity
for best string candidate processing.SSCANF_GetSimilarString
for best string candidate processing.SSCANF_GetSimilarValue
for best string candidate processing.OnPlayerNameChange
in the open.mp component code version.SSCANF_Levenshtein
internally to use direct AMX access.sscanf
before including it.SSCANF_Levenshtein
for better string candidate processing.SSCANF_GetClosestString
for better string candidate processing.SSCANF_GetClosestValue
for better string candidate processing.SSCANF_NO_K_VEHICLE
to disable the default k<vehicle>
specifier code.SSCANF_NO_K_WEAPON
to disable the default k<weapon>
specifier code."x'!'"
for example.SSCANF_VERSION
for compile-time checks.PawnSScanf
function from dll to other plugins.SSCANF_SetOption()
and SSCANF_GetOption()
for more control of options.SSCANF_VERSION
and SSCANF_Version()
to compare include and plugin versions.m
for colours (ran out of useful letters).[*]
support.[(32)]
).z
and Z
for packed strings (thus officially removing their deprecated optional use).p,
warnings - its now purely an error.k
in arrays.k
to consume the rest of the line (like strings) when they are the last specifier.u
wasn't working correctly after a server restart.MATCH_NAME_BEST
edition - vastly improved user name searches.
MATCH_NAME_SIMILARITY
).MATCH_NAME_FIRST
to revert best name match behaviour.MATCH_NAME_PARTIAL
.SSCANF_TextSimilarity
for best string candidate processing.SSCANF_GetSimilarString
for best string candidate processing.SSCANF_GetSimilarValue
for best string candidate processing.OnPlayerNameChange
in the open.mp component code version.SSCANF_Levenshtein
internally to use direct AMX access.sscanf
before including it.SSCANF_Levenshtein
for better string candidate processing.SSCANF_GetClosestString
for better string candidate processing.SSCANF_GetClosestValue
for better string candidate processing.SSCANF_NO_K_VEHICLE
to disable the default k<vehicle>
specifier code.SSCANF_NO_K_WEAPON
to disable the default k<weapon>
specifier code."x'!'"
for example.SSCANF_VERSION
for compile-time checks.PawnSScanf
function from dll to other plugins.SSCANF_SetOption()
and SSCANF_GetOption()
for more control of options.SSCANF_VERSION
and SSCANF_Version()
to compare include and plugin versions.m
for colours (ran out of useful letters).[*]
support.[(32)]
).z
and Z
for packed strings (thus officially removing their deprecated optional use).p,
warnings - its now purely an error.k
in arrays.k
to consume the rest of the line (like strings) when they are the last specifier.u
wasn't working correctly after a server restart.Dedicated to @maddinat0r. Thank you for hosting the repo for so long!
SSCANF_Levenshtein
for better string candidate processing.SSCANF_GetClosestString
for better string candidate processing.SSCANF_GetClosestValue
for better string candidate processing.SSCANF_NO_K_VEHICLE
to disable the default k<vehicle>
specifier code.SSCANF_NO_K_WEAPON
to disable the default k<weapon>
specifier code."x'!'"
for example.SSCANF_VERSION
for compile-time checks.PawnSScanf
function from dll to other plugins.SSCANF_SetOption()
and SSCANF_GetOption()
for more control of options.SSCANF_VERSION
and SSCANF_Version()
to compare include and plugin versions.m
for colours (ran out of useful letters).[*]
support.[(32)]
).z
and Z
for packed strings (thus officially removing their deprecated optional use).p,
warnings - its now purely an error.k
in arrays.k
to consume the rest of the line (like strings) when they are the last specifier.u
wasn't working correctly after a server restart.hex:
in non-sscanf code would result in a compiler error (#15)vehicle
and weapon
kustom specifiers (#5, thanks to @karimcambridge)Basically Y_Less' original version, with one fix by Emmet ("a bug where "u" wasn't working correctly after a server restart").