12.01.2013, 00:47
I've currently got this inside of a timer:
Along with "LoadConfig" (outside of the timer of course)
By the prints I can tell "LoadConfig" isn't being called - what's wrong with my ParseFile?
pawn Код:
INI_ParseFile( "Source/Configure.me", "LoadConfig" );
pawn Код:
forward LoadConfig_data ( name[], value[] );
public LoadConfig_data ( name[], value[] )
{
INI_Int( "VOTEKICK", Configuration [ Setting_VoteKick ] );
INI_Int( "FRIENDLYFIRE", Configuration [ Setting_FriendlyFire ] );
switch( Configuration [ Setting_VoteKick ] )
{
case 0: print ( "\t\tVoteKick: Disabled" );
case 1: print ( "\t\tVoteKick: Enabled for everybody" );
case 2: print ( "\t\tVoteKick: Enabled only for VIP" );
case 3: print ( "\t\tVoteKick: Enabled only for Admins" );
}
switch( Configuration [ Setting_FriendlyFire ] )
{
case 0: print ( "\t\tFriendly Fire: Disabled" );
case 1: print ( "\t\tFriendly Fire: Enabled" );
}
return true;
}