Code:
#include <amxmodx>
#include <amxmisc>
new file;
public plugin_init()
{
register_plugin( "kdj", "10", "ra1n" )
file = fopen( "testing.txt", "rt" )
set_task( 30.0, "readFile", _, _, _, "a" )
}
public readFile()
{
new buffer[256], asterisks[256]
fgets( file, buffer, 255 )
new i = 1
if( equal( buffer[0], "*" ) )
{
while( !equal(buffer[i], "*" ) )
{
add( asterisks, charsmax( asterisks ), buffer[i] )
i++;
}
new arg1[128], arg2[128]
parse( buffer, arg1, 127, arg2, 127 )
client_print( 0, print_chat, "%s is not in asterisks.", arg2 )
client_print( 0, print_chat, "%s is in asterisks", asterisks )
}
}
Maybe???
__________________