SA-MP Forums Archive
Fild read problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fild read problem. (/showthread.php?tid=553162)



File read problem. - RolePlayNews - 28.12.2014

Hi, the problem is that the process is not done.

Код:
new File:handle = fopen(GetClanMember(playerid)),buf[128];
if(handle)
{
	while(fread(handle, buf))
	if(strcmp(buf,PlayerName(playerid),true) == 0)
	{
	             msg(playerid,-1,"*** You are a member ***");
	}
}
Yeah, and that it can be solved, so I can delete a specific name IG?

Код:
new File:handle = fopen(GetClanMember(playerid)),buf[128];
if(handle)
{
	while(fread(handle, buf))
       /* here */
}