Saving help - 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: Saving help (
/showthread.php?tid=496827)
Saving help -
JacobSanchez - 23.02.2014
Ok so as of now my server is saving everything correctly nothing is wrong but i want a different way to wright it to the logs...
how I want mine to look in the file of the user
pawn Код:
Password here|Info here|Info here|Info Here|Info here
Player Name here|info here|info here|info here|info here|info here|info here // House values
how mine looks now
pawn Код:
Gender=1
Level=1338
UpgradePoints=100
Donations=10000
Coupon=10000
Minutes=4
TMinutes=4216
Hours=182
Age=29
Cash=99080726
Re: Saving help -
DexterC - 23.02.2014
I don't believe you can, correct me if I'm wrong. Even if you could, it wouldn't really look good at all, it would look messy, you should really just keep it as it is, it'll be easier to find things, instead of having it all bunched up in one line.
Re: Saving help -
JacobSanchez - 24.02.2014
It would not rly be bunched up in one line seeming ik how i want to organize it... but anyways it is possible i just don't know how. :/
Re: Saving help -
BroZeus - 24.02.2014
if u want write this information to server log then use printf() function
Re: Saving help -
Aerotactics - 24.02.2014
You could use format, as in:
pawn Код:
new string[64];
format(string,sizeof(string),"%s | %i | %i | %i | %i | %i |", playername,info here,info here,info here,info here,info here);
SaveInfoToFileWhatever (string);
But that's a long shot I think.
Source:
https://sampwiki.blast.hk/wiki/Format