Raised This Month: $ Target: $400
 0% 

Small code needs fixing.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iBrazilian
Senior Member
Join Date: May 2011
Old 05-02-2012 , 17:07   Small code needs fixing.
Reply With Quote #1

L 05/02/2012 - 16:02:06: [AMXX] Displaying debug trace (plugin "pokemod.amxx")
L 05/02/2012 - 16:02:06: [AMXX] Run time error 4: index out of bounds
L 05/02/2012 - 16:02:06: [AMXX] [0] pokeskills.inl::Triple_Team (line 2620)

PHP Code:
public Triple_Team(idksillprop)
    {
    new 
aidteled
    new 
players[MAX_PLAYERS], pnum
    
new f_origin[3];
    
pev(idpev_originf_origin)
    
f_origin[2] += 5
    poke_get_players
(playerspnumPLAYER_ALIVE|PLAYER_MORTAL)
    for(new 
ii<pnumi++)
        {
        
aid players[i]
        if(
get_user_team(id) == get_user_team(aid) && teled 3)
            {
            
f_origin[random_num(1,3)] += 10*teled // LINE ERROR HERE
            
set_pev(aidpev_origin,f_origin)
            
poke_UnStuck(aid)
            
teled++;
        }
    }
    if(
teled)
        return 
SKILL_USED;
    return 
SKILL_READY;

__________________
Pokemod Season 5 [ |||||||||| Complete]
iBrazilian 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 00:29.


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