22.09.2013, 10:51
For the Payday, make a second timer like this:
Under OnFilterScriptInit / OnGameModeInit:
Change PayDay(playerid) to PayDay().
Also, the OnPlayerUpdate is saving the level and exp as kills and deaths?
Try and change it to:
pawn Код:
forward SecondTimer();
public SecondTimer()
{
new hours, minutes, seconds;
gettime(hours, minutes, seconds);
if(seconds == 0 && minutes == 0)
{
PayDay()
}
return 1;
}
pawn Код:
SetTimer("SecondTimer", 1000, true);
Also, the OnPlayerUpdate is saving the level and exp as kills and deaths?
pawn Код:
format(var, 32, "[COLOR="red"]Kills[/COLOR]:%d\n",PlayerInfo[playerid][[COLOR="Red"]pLevel[/COLOR]]);fwrite(hFile, var);
format(var, 32, "[COLOR="red"]Deaths[/COLOR]:%d\n",PlayerInfo[playerid][[COLOR="red"]pExp[/COLOR]]);fwrite(hFile, var);
pawn Код:
format(var, 32, "Level:%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 32, "Exp:%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);

