19.01.2014, 12:59
Quote:
|
Ok. here's one code for reading .txt files in-game:
pawn Код:
where is the problem?? |
Код:
CMD:read(playerid,params[])
{
new tmp[60],store[256],string[158];
if (sscanf(params, "s[60]",tmp)) return SendClientMessage(playerid, -1, "Usage: /Read TextFile (include .txt)");
new file:file = fopen(tmp,io_read);
while(fread(file,store))
{
format(string,sizeof(string),"%s",file); //problem line - 277
SendClientMessage(playerid,-1,string);
}
return 1;
}


