[HELP] Register/Login System wont load score
#1

Hello, i have figured out how to save the score but when i load it it just goes to default wich is "0"
so please how can i fix this problem?

i will +rep for help

Pastebin link to the whole script: PASTEBIN
Reply
#2

Anyone? please..
Reply
#3

Not completely sure but try
pawn Код:
new Score = Dini(data, score);
SetPlayerScore(playerid,score);
Also dini is very outdated update to y_ini or something bro.
Reply
#4

it dont work.
Reply
#5

To save score
Код:
    {
        dini_IntSet(file, "Score", GetPlayerScore(playerid));
    }
Reply
#6

problem is that i cant load it -.-
Reply
#7

i cannot veiw the pastebin because i am at school but this is what i have and may work for you

pawn Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
but ofcourse i have the user path and dialog IDs defined but you may be able to leech something from that
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)