mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +03:00
Nextmap: replace len hardcoded content by charsmax and sizeof
This commit is contained in:
parent
2db8156326
commit
94a4be95fe
@ -238,7 +238,7 @@ public sayNextMap(){
|
|||||||
public sayNextMapTimeLeft(){
|
public sayNextMapTimeLeft(){
|
||||||
new szName[32], szText[128]
|
new szName[32], szText[128]
|
||||||
get_cvar_string("amx_nextmap", szName, charsmax(szName))
|
get_cvar_string("amx_nextmap", szName, charsmax(szName))
|
||||||
format(szText, 64, "Next Map: %s", szName)
|
format(szText, charsmax(szText), "Next Map: %s", szName)
|
||||||
|
|
||||||
if (get_cvar_float("mp_timelimit")) {
|
if (get_cvar_float("mp_timelimit")) {
|
||||||
new a = get_timeleft()
|
new a = get_timeleft()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user