08.01.2015, 07:55
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.
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;
}