And what will you do with those lines later?
Quote:
Originally Posted by Elusive13
I want to split messages into the .ini file not in .sma
|
you put
in your config file, then in plugin you open this file, read the line, format it and show to player via show_hudmessage(). Users will see
What's else?
you can read line by line
Spoiler
PHP Code:
foo()
{
new file = fopen("addons/amxmodx/configs/messages.ini", "rt")
if(file)
{
new buffer[128]
while(!feof(file))
{
fgets(file, buffer, charsmax(buffer))
//work here with retrieved line? (how?)
}
fclose(file)
}
else
{
log_amx("Could not open file!")
}
}
__________________