Score question
#4

Or if you couldn't get that one working due to error-ish code:

pawn Код:
public OnPlayerConnect(playerid)
{
  SetPVarInt(playerid, "scoreTimer", SetTimerEx("GivePlayerHourlyScore", 60 * 60 * 1000, 1, "i", playerid));
  return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
  KillTimer(GetPVarInt(playerid, "scoreTimer"));
  return 1;
}

forward GivePlayerHourlyScore(playerid);
public GivePlayerHourlyScore(playerid)
{
  GivePlayerScore(playerid, GetPlayerScore(playerid) + 1);
}
Should work
Reply


Messages In This Thread
Score question - by AlexXx95 - 09.11.2010, 13:19
Re: Score question - by Larsey123IsMe - 09.11.2010, 13:24
Re: Score question - by AlexXx95 - 09.11.2010, 13:27
Re: Score question - by Hiddos - 09.11.2010, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)