format fixes

This commit is contained in:
Borja Ferrer 2005-11-21 20:31:18 +00:00
parent c6fc34a64d
commit 1a48ebb345
13 changed files with 31 additions and 31 deletions

View File

@ -641,7 +641,7 @@ accessUser(id, name[] = "")
if (result & 2)
{
client_cmd(id, g_cmdLoopback)
client_cmd(id, "%s", g_cmdLoopback)
return PLUGIN_HANDLED
}

View File

@ -256,7 +256,7 @@ public cmdBan(id, level, cid)
else
format(msg[len], 255-len, "%L", players[i], "PERM")
client_print(players[i], print_chat, msg)
client_print(players[i], print_chat, "%s", msg)
}
}
console_print(id, "[AMXX] %L", id, "CLIENT_BANNED", name2)
@ -329,7 +329,7 @@ public cmdBanIP(id, level, cid)
else
format(msg[len], 255-len, "%L", players[i], "PERM")
client_print(players[i], print_chat, msg)
client_print(players[i], print_chat, "%s", msg)
}
}
console_print(id, "[AMXX] %L", id, "CLIENT_BANNED", name2)

View File

@ -79,7 +79,7 @@ public client_authorized(id)
return PLUGIN_CONTINUE
}
client_cmd(id, g_cmdLoopback)
client_cmd(id, "%s", g_cmdLoopback)
return PLUGIN_HANDLED
}

View File

@ -107,7 +107,7 @@ public cmdCancelVote(id, level, cid)
}
public delayedExec(cmd[])
server_cmd(cmd)
server_cmd("%s", cmd)
public autoRefuse()
{

View File

@ -134,11 +134,11 @@ public actionCmdMenu(id, key)
new flags = g_cmdMisc[option][1]
if (flags & 1)
server_cmd(g_cmdCmd[option])
server_cmd("%s", g_cmdCmd[option])
else if (flags & 2)
client_cmd(id, g_cmdCmd[option])
client_cmd(id, "%s", g_cmdCmd[option])
else if (flags & 4)
client_cmd(0, g_cmdCmd[option])
client_cmd(0, "%s", g_cmdCmd[option])
if (flags & 8)
displayCmdMenu(id, g_menuPosition[id])

View File

@ -325,7 +325,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
format(team_name, 31, "%L", ppl[a], (epplnum == 1) ? g_teamsNames[team] : g_teamsNames[team + 2])
format(message, 127, "%L", ppl[a], "REMAINING", epplnum, team_name)
show_hudmessage(ppl[a], message)
show_hudmessage(ppl[a], "%s", message)
}
}
}
@ -438,7 +438,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
replace(message, 127, "$kn", killer_name)
set_hudmessage(100, 100, 255, -1.0, 0.29, 0, 6.0, 6.0, 0.5, 0.15, -1)
show_hudmessage(players[i], message)
show_hudmessage(players[i], "%s", message)
}
}
@ -514,7 +514,7 @@ public showStatus(id)
show_hudmessage(id, "%s -- %d HP / %d AP / %s", name, get_user_health(pid), get_user_armor(pid), wpnname)
} else {
set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, g_channel[id])
show_hudmessage(id, name)
show_hudmessage(id, "%s", name)
}
}
}

View File

@ -585,7 +585,7 @@ public client_command(id)
{
if (equali(g_Aliases[g_AliasBlock[a]], arg) || equali(g_Aliases2[g_AliasBlock[a]], arg))
{
client_print(id, print_center, g_Restricted)
client_print(id, print_center, "%s", g_Restricted)
return PLUGIN_HANDLED
}
} while (++a < g_AliasBlockNum)
@ -596,7 +596,7 @@ public client_command(id)
public blockcommand(id)
{
client_print(id, print_center, g_Restricted)
client_print(id, print_center, "%s", g_Restricted)
return PLUGIN_HANDLED
}
@ -618,7 +618,7 @@ checkRest(id, menu, key)
if (g_blockPos[(menu * 8 + key) + (get_user_team(id) - 1) * 56])
{
engclient_cmd(id, "menuselect", "10")
client_print(id, print_center, g_Restricted)
client_print(id, print_center, "%s", g_Restricted)
return PLUGIN_HANDLED
}

View File

@ -294,7 +294,7 @@ public cmdHudTest(id)
iLen += format(g_sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, "....x....1....x....2....x....3....x....4....x....^n")
set_hudtype_killer(50.0)
show_hudmessage(id, g_sBuffer)
show_hudmessage(id, "%s", g_sBuffer)
}
#endif
@ -862,7 +862,7 @@ show_roundend_hudstats(id, Float:fGameTime)
{
g_LastChannel[id] = next_hudchannel(id)
set_hudtype_endround(id, fDuration)
show_hudmessage(id, g_sAwardAndScore)
show_hudmessage(id, "%s", g_sAwardAndScore)
#if defined STATSX_DEBUG
log_amx("Show %1.2fs round end HUD stats for #%d", fDuration, id)
#endif
@ -901,7 +901,7 @@ show_user_hudstats(id, Float:fGameTime)
get_kill_info(id, iKiller, g_sBuffer)
add_attacker_hits(id, iKiller, g_sBuffer)
set_hudtype_killer(fDuration)
show_hudmessage(id, g_sBuffer)
show_hudmessage(id, "%s", g_sBuffer)
#if defined STATSX_DEBUG
log_amx("Show %1.2fs %suser HUD k-stats for #%d", fDuration, g_sBuffer[0] ? "" : "no ", id)
#endif
@ -911,7 +911,7 @@ show_user_hudstats(id, Float:fGameTime)
{
get_victims(id, g_sBuffer)
set_hudtype_victim(fDuration)
show_hudmessage(id, g_sBuffer)
show_hudmessage(id, "%s", g_sBuffer)
#if defined STATSX_DEBUG
log_amx("Show %1.2fs %suser HUD v-stats for #%d", fDuration, g_sBuffer[0] ? "" : "no ", id)
#endif
@ -921,7 +921,7 @@ show_user_hudstats(id, Float:fGameTime)
{
get_attackers(id, g_sBuffer)
set_hudtype_attacker(fDuration)
show_hudmessage(id, g_sBuffer)
show_hudmessage(id, "%s", g_sBuffer)
#if defined STATSX_DEBUG
log_amx("Show %1.2fs %suser HUD a-stats for #%d", fDuration, g_sBuffer[0] ? "" : "no ", id)
#endif

View File

@ -65,8 +65,8 @@ public infoMessage()
g_Current = 0
set_hudmessage(g_Values[g_Current][0], g_Values[g_Current][1], g_Values[g_Current][2], X_POS, Y_POS, 0, 0.5, HOLD_TIME, 2.0, 2.0, -1)
show_hudmessage(0, g_Messages[g_Current])
client_print(0, print_console, g_Messages[g_Current])
show_hudmessage(0, "%s", g_Messages[g_Current])
client_print(0, print_console, "%s", g_Messages[g_Current])
++g_Current
new Float:freq_im = get_cvar_float("amx_freq_imessage")

View File

@ -149,7 +149,7 @@ public actionMenu(id, key)
{
case 8: displayMenu(id, ++g_menuPosition[id])
case 9: displayMenu(id, --g_menuPosition[id])
default: client_cmd(id, g_menuCmd[g_menuPosition[id] * 8 + key])
default: client_cmd(id, "%s", g_menuCmd[g_menuPosition[id] * 8 + key])
}
return PLUGIN_HANDLED
@ -161,7 +161,7 @@ public clientActionMenu(id, key)
{
case 8: clientDisplayMenu(id, ++g_clientMenuPosition[id])
case 9: clientDisplayMenu(id, --g_clientMenuPosition[id])
default: client_cmd(id, g_clientMenuCmd[g_clientMenuPosition[id] * 8 + key])
default: client_cmd(id, "%s", g_clientMenuCmd[g_clientMenuPosition[id] * 8 + key])
}
return PLUGIN_HANDLED

View File

@ -677,12 +677,12 @@ public actionClcmdMenu(id, key)
if (flags & 1)
{
server_cmd(command)
server_cmd("%s", command)
server_exec()
} else if (flags & 2)
client_cmd(id, command)
client_cmd(id, "%s", command)
else if (flags & 4)
client_cmd(player, command)
client_cmd(player, "%s", command)
}
if (flags & 8)

View File

@ -74,7 +74,7 @@ public showMsg()
}
set_hudmessage(200, 100, 0, g_xPos, 0.90, 0, SPEED, SPEED, 0.05, 0.05, -1)
show_hudmessage(0, g_displayMsg)
show_hudmessage(0, "%s", g_displayMsg)
}
public msgInit()
@ -84,7 +84,7 @@ public msgInit()
g_xPos = 0.65
set_task(SPEED, "showMsg", 123, "", 0, "a", g_Length + 48)
client_print(0, print_console, g_scrollMsg)
client_print(0, print_console, "%s", g_scrollMsg)
}
public setMessage()

View File

@ -103,7 +103,7 @@ public sayTimeLeft(id)
{
new svoice[128]
setTimeVoice(svoice, 127, 0, a)
client_cmd(id, svoice)
client_cmd(id, "%s", svoice)
}
client_print(0, print_chat, "%L: %d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
}
@ -260,14 +260,14 @@ public timeRemain(param[])
else
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1)
show_hudmessage(players[i], arg)
show_hudmessage(players[i], "%s", arg)
}
}
if (flags & 2)
{
setTimeVoice(arg, 127, flags, tmlf)
client_cmd(0, arg)
client_cmd(0, "%s", arg)
}
}
}