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", szFileConfig, 59)
formatex(szFilePath, 59, "%s/Test.ini", szFileConfig)
new iFile = fopen(szFilePath, "r")
while(!feof(iFile))
{
fgets(iFile, szFileData, 459)
client_print(id, print_chat, "Testing: %s", szFileData)
}
fclose(iFile)
}
Thank you very much hope to get help early.
__________________