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 iPlayers[ 32 ], iNum;
get_players( iPlayers, iNum, "ae", "CT");
if( iNum )
{
ChosenPlayer( iPlayers[ ( iNum > 1 ) ? random( iNum ) : 0 ] );
}
}
ChosenPlayer(id)
{
set_user_health(id, 200)
}
Error:
PHP Code:
Warning: Symbol 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?
__________________