Raised This Month: $ Target: $400
 0% 

Run time error 11: divide


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-07-2011 , 21:32   Run time error 11: divide
Reply With Quote #1

See LOG and pug_modspecific.inc

Code:
L 04/07/2011 - 22:26:04: Start of error session.
L 04/07/2011 - 22:26:04: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20110407.log")
L 04/07/2011 - 22:26:04: [AMXX] Displaying debug trace (plugin "pug_menu.amxx")
L 04/07/2011 - 22:26:04: [AMXX] Run time error 11: divide 
L 04/07/2011 - 22:26:04: [AMXX]    [0] pug_modspecific.inc::pug_teams_optimize (line 28)
L 04/07/2011 - 22:26:04: [AMXX]    [1] pug_menu.sma::voteteam_count (line 325)

Code:
stock pug_teams_optimize() {     new skillz[33], sorted[33]         static Players[32];     new playerCount, i, player;     get_players(Players, playerCount, "ch")     for (i=0; i<playerCount; i++)     {         player = Players[i];         sorted[player] = skillz[player] = get_user_time(player,1) / get_user_frags(player);     }         SortIntegers(sorted,33,Sort_Descending);     new check = 1, teams = pug_num_teams();     for (i=0; i < 33; i++)     {         for(new a = 0; a < playerCount; a++)         {             player = Players[a]             if(skillz[player] == sorted[i])             {                 pug_set_client_team(player,check);                 check++;                 if(check > teams) check = 1;             }         }     } }
Any ideas?
Attached Files
File Type: log error_20110407.log (457 Bytes, 285 views)
File Type: inc pug_modspecific.inc (1,009 Bytes, 335 views)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 04-07-2011 at 21:34. Reason: Added: pug_modspecific.inc
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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 20:12.


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