SA-MP Forums Archive
File,n'know.. help please. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: File,n'know.. help please. (/showthread.php?tid=106562)



File,n'know.. help please. - user226 - 04.11.2009

Hello everybody, i have problem, i not know how make this:
i have code:
Код:
new File:ftw=fopen("Dev_carLV.txt", io_readwrite);
new strin2g[30];
format(strin2g, 30, " %s = %d \r\n",oGetPlayerName(gamerLV),missionTime); 
fwrite(ftw, strin2g);
fclose(ftw);
this code write in file my string.
how make if missionTime figures more than - rewrite, if missionTime figures less to - SendMessageAll(Last record this mission:d%[missionTime])
Help me Please..
if not understand tell me..


Re: File,n'know.. help please. - Brendan_Thomson - 04.11.2009

pawn Код:
if(missionTime > int)
{
//write
}
else
{
  SendClientMessageToAll();
}



Re: File,n'know.. help please. - user226 - 04.11.2009

Quote:
Originally Posted by Brendan_Thomson
pawn Код:
if(missionTime > int)
{
//write
}
else
{
  SendClientMessageToAll();
}
fucking NEED that if the file string is var more, then ..
And what you have written, where the string that is compared with a line from a file?


Re: File,n'know.. help please. - user226 - 04.11.2009