Raised This Month: $ Target: $400
 0% 

Problem with float.inc


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TheiOne
Member
Join Date: Mar 2017
Old 05-15-2018 , 07:46   Problem with float.inc
Reply With Quote #1

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.
TheiOne is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode