Saving help
#1

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
Reply
#2

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.
Reply
#3

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. :/
Reply
#4

if u want write this information to server log then use printf() function
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)