Raised This Month: $ Target: $400
 0% 

How to check if a player's name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DJHD!
Veteran Member
Join Date: Dec 2009
Location: Santiago, Chile
Old 07-14-2012 , 14:45   How to check if a player's name
Reply With Quote #1

Well I have this code that reads what is written the .ini file now my question is how I can get to what is written is a player name.

PHP Code:
#include <amxmodx> 

new szVersion[] = "1.0"

public 
plugin_init() 

    
register_plugin("Read"szVersion"Asd'")
    
    
register_clcmd("say /result""Command_ReadFile")


public 
Command_ReadFile(id

    new 
szFileData[160]
    new 
szFilePath[60]
    new 
szFileConfig[60]
    
    
get_localinfo("amxx_configsdir"szFileConfig59)
    
formatex(szFilePath59"%s/Test.ini"szFileConfig)
    
    new 
iFile fopen(szFilePath"r")
    
    while(!
feof(iFile))
    { 
        
fgets(iFileszFileData459)

        
client_print(idprint_chat"Testing: %s"szFileData)
    } 
    
fclose(iFile)

Thank you very much hope to get help early.
__________________
Quote:
Originally Posted by XINLEI View Post
Porque rocccos trata de ser el metalicross que nunca va a poder ser.
DJHD! is offline
Send a message via MSN to DJHD!
 



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 15:04.


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