HELP Stats problems
#1

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

Why you guys hate me so much
Reply
#3

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

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!
Reply
#5

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

Guys dont hate me but help me please
Reply
#7

bump =/
Reply
#8

Who hate you?
Reply
#9

all hate me, nobody help me ;(
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)