18.01.2014, 22:06
Ok. here's one code for reading .txt files in-game:
So on that line 277 (the problem line) shows a warning: C:\Users\*****\Desktop\Untitled.pwn(277) : warning 213: tag mismatch
where is the problem??
pawn Код:
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;
}
where is the problem??