SA-MP Forums Archive
HELP Stats problems - 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: HELP Stats problems (/showthread.php?tid=586106)



HELP Stats problems - NeverKnow - 19.08.2015

Guys my saving system is bugged. i need help from you guys

FIXED the fist problem. Thanks guys

also when server crashes everyone lose their stats why is this
i really need 2 fix this, sometimes server freeze idk if this is a ddos but after that everyone lose their stats


Re: HELP Stats problems - NeverKnow - 19.08.2015

Why you guys hate me so much


Re: HELP Stats problems - Mariciuc223 - 19.08.2015

The tag you setted it's "PlayerStats" ?

Код:
INI_ParseFile(UserPath(playerid), "LoadUser_PlayerStats", .bExtra = true, .extra = playerid);
INI_ParseFile(UserPath(playerid), "LoadUser_PlayerStats2", .bExtra = true, .extra = playerid);
to

Код HTML:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
// Where %s = Setted tag for some data , you will load there only the data under the tag ..

forward LoadUser_data1(playerid, name[], value[]) // Our tag it's "data1"
forward LoadUser_data2(playerid, name[], value[]) // Our tag it's "data2"

public LoadUser_data1(playerid, name[], value[])
{
        INI_Int("Stuff", Variable[0]);
        INI_String("StringStuff", Array[0][]);
        return 1;
}
public LoadUser_data2(playerid, name[], value[])
{
        INI_Int("Stuff1", Variable[1]);
        INI_String("StringStuff1", Array[1][]);
        return 1;
}
Hope you understand xD


Re: HELP Stats problems - NeverKnow - 19.08.2015

huh, but how is the system gonna know that i mean the tag: PlayerStats or PlayerStats1 if i use: %s

INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); << how this gonna know which tag i mean?

on my server I want to load the stats for each mode

thanks for your reply!


Re: HELP Stats problems - NeverKnow - 19.08.2015

Fixed 1st problem now i need a fix to save stats when server crash :S


Re: HELP Stats problems - NeverKnow - 19.08.2015

Guys dont hate me but help me please


Re: HELP Stats problems - NeverKnow - 20.08.2015

bump =/


Re: HELP Stats problems - lanix - 20.08.2015

Who hate you?


Re: HELP Stats problems - NeverKnow - 20.08.2015

all hate me, nobody help me ;(