Raised This Month: $ Target: $400
 0% 

Set_Task? [Solved]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-10-2010 , 09:50   Set_Task? [Solved]
Reply With Quote #1

This isnt working ...

My task is supposed to work after 10 seconds , but i get this warning :

PHP Code:
#include <amxmodx> 
#include <fun> 
#include <cstrike>

public plugin_init( ) 

    
register_logevent"EventRoundStart"2"1=Round_Start" ); 
}

public 
EventRoundStart(id

    
set_task(10.0"ChoosePlayer"id)


ChoosePlayer( ) 

    new 
iPlayers32 ], iNum
    
get_playersiPlayersiNum"ae""CT"); 
     
    if( 
iNum 
    { 
        
ChosenPlayeriPlayers[ ( iNum ) ? randomiNum ) : ] );
    } 
}

ChosenPlayer(id

    
set_user_health(id200)

Error:

PHP Code:
WarningSymbol is never used"ChoosePlayer" on line 30
Warning
Symbol is never used"ChosenPlayer" on line 30 
I have set ChoosePlayer ... in set task , but since its not running the event , its giving me the 2nd warning too , so all i need to fix is the first one ... but how?
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%

Last edited by SaM.ThE.MaN; 10-11-2010 at 04:58.
SaM.ThE.MaN 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 10:29.


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