Merge pull request #216 from luxxxoor/patch-1
Some missing charsmax and more readability.
This commit is contained in:
commit
73cf46ff45
|
@ -1124,12 +1124,14 @@ public cmdShowRcon(id, level, cid)
|
||||||
|
|
||||||
new password[64]
|
new password[64]
|
||||||
|
|
||||||
get_pcvar_string(rcon_password, password, 63)
|
get_pcvar_string(rcon_password, password, charsmax(password))
|
||||||
|
|
||||||
if (!password[0])
|
if (!password[0])
|
||||||
{
|
{
|
||||||
cmdRcon(id, level, cid)
|
cmdRcon(id, level, cid)
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
new args[128]
|
new args[128]
|
||||||
|
|
||||||
read_args(args, charsmax(args))
|
read_args(args, charsmax(args))
|
||||||
|
|
|
@ -463,7 +463,7 @@ public cmdVoteKickBan(id, level, cid)
|
||||||
format(lNo, charsmax(lNo), "%L", LANG_SERVER, "NO")
|
format(lNo, charsmax(lNo), "%L", LANG_SERVER, "NO")
|
||||||
format(lKickBan, charsmax(lKickBan), "%L", LANG_SERVER, voteban ? "BAN" : "KICK")
|
format(lKickBan, charsmax(lKickBan), "%L", LANG_SERVER, voteban ? "BAN" : "KICK")
|
||||||
ucfirst(lKickBan)
|
ucfirst(lKickBan)
|
||||||
get_user_name(player, arg, 31)
|
get_user_name(player, arg, charsmax(arg))
|
||||||
format(menu_msg, charsmax(menu_msg), g_coloredMenus ? "\y%s %s?\w^n^n1. %s^n2. %s" : "%s %s?^n^n1. %s^n2. %s", lKickBan, arg, lYes, lNo)
|
format(menu_msg, charsmax(menu_msg), g_coloredMenus ? "\y%s %s?\w^n^n1. %s^n2. %s" : "%s %s?^n^n1. %s^n2. %s", lKickBan, arg, lYes, lNo)
|
||||||
g_yesNoVote = 1
|
g_yesNoVote = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user