What does this error mean ?
Code:
L 05/15/2018 - 15:59:47: String formatted incorrectly - parameter 11 (total 10)
L 05/15/2018 - 15:59:47: [AMXX] Displaying debug trace (plugin "statsx_shell.amxx", version "1.8.3-dev+5154")
L 05/15/2018 - 15:59:47: [AMXX] Run time error 25: parameter error
L 05/15/2018 - 15:59:47: [AMXX] [0] float.inc::operator/(Float:,_:) (line 294)
L 05/15/2018 - 15:59:47: [AMXX] [1] statsx_shell.sma::effec (line 923)
L 05/15/2018 - 15:59:47: [AMXX] [2] statsx_shell.sma::cmdRank (line 2774)
This is "effec" :
Code:
Float:effec(izStats[8])
{
if (!izStats[STATS_KILLS])
return (0.0) // line 923
return (100.0 * float(izStats[STATS_KILLS]) / float(izStats[STATS_KILLS] + izStats[STATS_DEATHS]))
}
And cmdRank:
Code:
public cmdRank(id)
{
if (!SayRank)
{
client_print_color(id, print_team_red, "^3%L", id, "DISABLED_MSG")
return PLUGIN_HANDLED
}
new izStats[8], izBody[8]
new iRankPos, iRankMax
iRankPos = get_user_stats(id, izStats, izBody)
iRankMax = get_statsnum()
client_print_color(id, id, "^4* %L", id, "YOUR_RANK_IS", iRankPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], ((effec(izStats) + accuracy(izStats)) / 2))
return PLUGIN_CONTINUE
}
As shown in the error message above I'm using AMXX 1.8.3.