[Help]Wanted Level Not Load + Score
#10

Just add the score and wanted functions inside your loading function like this.
Then they are automatically set when the data is loaded and you don't have code spread all over the place that actually belongs together.

pawn Код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Score",PlayerInfo[playerid][pScore]);
    INI_Int("Wanted",PlayerInfo[playerid][pWanted]);

    SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWanted]);
    SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);

    return 1;
}
Reply


Messages In This Thread
[Help]Wanted Level Not Load + Score - by astanalol - 08.01.2015, 01:28
Re: [Help]Wanted Level Not Load + Score - by SickAttack - 08.01.2015, 01:41
Re: [Help]Wanted Level Not Load + Score - by astanalol - 08.01.2015, 02:30
Re: [Help]Wanted Level Not Load + Score - by astanalol - 08.01.2015, 02:54
Re: [Help]Wanted Level Not Load + Score - by astanalol - 08.01.2015, 03:12
Re: [Help]Wanted Level Not Load + Score - by nogh445 - 08.01.2015, 03:14
Re: [Help]Wanted Level Not Load + Score - by astanalol - 08.01.2015, 03:57
Re: [Help]Wanted Level Not Load + Score - by astanalol - 08.01.2015, 04:51
Re: [Help]Wanted Level Not Load + Score - by ahmedkoki - 08.01.2015, 05:46
Re: [Help]Wanted Level Not Load + Score - by PowerPC603 - 08.01.2015, 07:55

Forum Jump:


Users browsing this thread: 2 Guest(s)