Saving Score - 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 Score (
/showthread.php?tid=411757)
Saving Score -
California_ - 30.01.2013
I need Help I cant find any way to save score. I searched all on ****** for mysql saving systems or dini and Y_ini saving systems none of them worked Im just so pissed right now.
I need a system to save score AND SCORE ONLY. I dont want and /login and register system -__-
Thats all i want is meh score n money to save.
Does anyone has a script that can help me with that?
Re: Saving Score -
denNorske - 30.01.2013
I don't have a script for you. But you can make a saving score system. With Y_INI or DINI.
Here is an example.
pawn Код:
stock INI_PATH(playerid)
{
new file[65];
format(file, sizeof(file),"Score/%s.ini",PlayerName(playerid));
return file;
}
//Then, under OnPlayerConnect
public OnPlayerConnect(playerid)
if(fexist(INI_PATH(playerid)))
{
INI_ParseFile(INI_PATH(playerid),"loadscore_%s", .bExtra = true, .extra = playerid);
SetPlayerScore(playerid, AccInfo[playerid][score]);//its sets your score...
}
That was to load the file
for example. Read Y_INI here:
https://sampforum.blast.hk/showthread.php?tid=175565 And try yourself
There is loads of code i am not giving here, but just an example :P
I can't just give you what you want, you must try yourself
Re: Saving Score -
California_ - 30.01.2013
Man I need a saving system fucking bad man ffs. I will +rep or give admin in my server ANYTHING JUST HELP
Re: Saving Score -
California_ - 30.01.2013
nO Answer! , Bump.
Re: Saving Score -
denNorske - 30.01.2013
Please, this section is not to get people scripting for you, this is to HELP you understand the scripting, and help you with small codes.
~regards. (NOTE: Dont bump topics so fast, wait 24 hours miniumum!)