Raised This Month: $ Target: $400
 0% 

Reading from a file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
killergirl
Senior Member
Join Date: Jul 2010
Old 03-28-2011 , 12:34   Re: Reading from a file
Reply With Quote #7

This is why I break the loop:

[IMG]http://img856.**************/img856/7668/86684968.png[/IMG]

I used parse because the tutorial:
http://forums.alliedmods.net/showpos...96&postcount=1

Flags:

Mode uses the standard C library of mode types.
The first character can be:
"a" - append
"r" - read
"w" - write

The second character can be:
"t" - text
"b" - binary


Thanks !

PHP Code:
public asd_test(id)
{    
    new 
FileTextOpenerNewUserName[32], OldUserName[32], ReadData[128]
    
    
FileTextOpener fopen(g_File"rt")
    
    if(
FileTextOpener)
    {
        while( !
feof(FileTextOpener) )
        {
            
fgets(FileTextOpener,ReadData,127)
                
            
get_user_name(idNewUserName31)
                
            if(
equal(NewUserNameOldUserName))
            {
                
client_print(idprint_chat"YES ! %s"NewUserName)
            }
            else
            {
                
client_print(idprint_chat"NO ! %s"NewUserName)
            }
        }
        
fclose(FileTextOpener)
    }
    
    return 
PLUGIN_HANDLED

Same, the script won't work
killergirl 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 14:29.


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