Hfile skip a line? - 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: Hfile skip a line? (
/showthread.php?tid=332168)
any one? -
HondaCBR - 07.04.2012
When using hFile, like this:
pawn Код:
format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
lets say I wouldnt want to update something on accounts update, how could I skip without writting?
something like this?:
pawn Код:
format(var, 32, "PayDayHad=\n");fwrite(hFile, var);
or what?
Re: Hfile skip a line? -
HondaCBR - 07.04.2012
Any ideas?
Re: Hfile skip a line? -
TzAkS. - 07.04.2012
and how will know what to write?
Код:
format(var, 32, "PayDayHad=\n");fwrite(hFile, var);
He will write this..
PlayerInfo[playerid][pPayDayHad]
Код:
format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
Re: Hfile skip a line? -
HondaCBR - 07.04.2012
I know it did write this, I tested it, so how can I skip through leaving whatever valu is there, because that value gets updated at different point, not every time accounts update.
Any ideas?
Re: Hfile skip a line? -
TzAkS. - 07.04.2012
You can do it with a timer,write files on
And you can put a timer there and is updating on X Minutes.
But is better to write that on OnPlayerUpdate and put it to
OnPlayerDisconnect, an it save it.
Re: Hfile skip a line? -
HondaCBR - 07.04.2012
no need no timer, I just want everything to save as it is, but dont update on the pPayDayHad, if that was =20, I want it to stay like that without updating