25.03.2014, 10:32
so here i made a simple save cop score but there is a problem . it save's all the scores that player take, i mean and rob scores i just want to save the cop scores how can i do that ??
here is my code
here is my code
pawn Код:
public OnPlayerConnect(playerid)
{
new pname[128];
new file[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), savefolder,pname);
if(!dini_Exists(file)) {
dini_Create(file);
dini_IntSet(file, "Copskill", 0);
SetPlayerScore(playerid, dini_Int(file, "Copskill"));
}
else {
SetPlayerScore(playerid, dini_Int(file, "Copskill"));
}
return 1;
}