Load strings with file.inc or yini from file.
#7

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
well it would work like this
but make sure in ur "bla bla bla" there is no "=" sign
pawn Код:
//on top
#define MAX_STRING_FROM_FILE 50
new store[MAX_STRING_FROM_FILE][];


//the reading part
new var=0,line[100];
new File:file=fopen("FILENAME",io_read);

while(fread(file,line))
{
if(strfind(line,"=") != -1)continue;
format(store[var],100,"%s",line);
var++;
}
fclose(file);
And how after, load that string in SendClientMessage for example?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)