Merge pull request #216 from luxxxoor/patch-1

Some missing charsmax and more readability.
This commit is contained in:
Vincent Herbet 2015-03-10 00:27:35 +01:00
commit 73cf46ff45
2 changed files with 6 additions and 4 deletions

View File

@ -1124,12 +1124,14 @@ public cmdShowRcon(id, level, cid)
new password[64]
get_pcvar_string(rcon_password, password, 63)
get_pcvar_string(rcon_password, password, charsmax(password))
if (!password[0])
{
cmdRcon(id, level, cid)
} else {
}
else
{
new args[128]
read_args(args, charsmax(args))

View File

@ -459,11 +459,11 @@ public cmdVoteKickBan(id, level, cid)
new keys = MENU_KEY_1|MENU_KEY_2
new menu_msg[256], lYes[16], lNo[16], lKickBan[16]
format(lYes, charsmax(lYes), "%L", LANG_SERVER, "YES")
format(lYes, charsmax(lYes), "%L", LANG_SERVER, "YES")
format(lNo, charsmax(lNo), "%L", LANG_SERVER, "NO")
format(lKickBan, charsmax(lKickBan), "%L", LANG_SERVER, voteban ? "BAN" : "KICK")
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)
g_yesNoVote = 1