Help on saving stats
#1

I need help.I want to make a saving script where you get saved every 15 seconds and the data will be saved in a folder please help
Reply
#2

pawn Код:
under gamode into
SetTimer("message", 1000, false);
//dont goes atop of you script
forward SaveStats(playerid;
//anywhere to the bottom
Public SaveStats(playerid)
{
//info goes here
}
Reply
#3

Quote:
Originally Posted by trapstar2020
Посмотреть сообщение
pawn Код:
under gamode into
SetTimer("message", 1000, false);
//dont goes atop of you script
forward SaveStats(playerid;
//anywhere to the bottom
Public SaveStats(playerid)
{
//info goes here
}
"Every 15 seconds" - your code saves once and in one second. Also, you are missing a closing brace.
Reply
#4

SetTimer("SaveStats", 15000, false); //better and no itz missing nothing
Reply
#5

Quote:
Originally Posted by trapstar2020
Посмотреть сообщение
pawn Код:
under gamode into
SetTimer("message", 1000, false);
//dont goes atop of you script
forward SaveStats(playerid;
//anywhere to the bottom
Public SaveStats(playerid)
{
//info goes here
}
I thought it should be
pawn Код:
SetTimer("SaveStats", 1000, false); //instead of "message"
Btw, he said every 15 seconds;
pawn Код:
SetTimer("SaveStats", 15000, false); //change 1000 to 15000
And he said, EVERY. So you should repeat the timer by changing "false" to "true"
pawn Код:
SetTimer("SaveStats", 15000, false);
Reply
#6

yeah i fixed it watch right above u
Reply
#7

I Need Nice stats system with dialog
Reply
#8

create a dialog list and make a option save stats and add this in listitem
SaveStats(playerid);
Reply
#9

Quote:
Originally Posted by trapstar2020
Посмотреть сообщение
yeah i fixed it watch right above u
It's still at false
Reply
#10

And I want it to save in my server files automatically with all its data in it will this only do?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)