Saving Score
#2

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
Reply


Messages In This Thread
Saving Score - by California_ - 30.01.2013, 12:11
Re: Saving Score - by denNorske - 30.01.2013, 12:25
Re: Saving Score - by California_ - 30.01.2013, 12:31
Re: Saving Score - by California_ - 30.01.2013, 12:51
Re: Saving Score - by denNorske - 30.01.2013, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)