28.12.2010, 21:36
playerid needs to be defined o_o
but i got it now working with:
but i got it now working with:
Код:
#include <a_samp> new ScoreTime[MAX_PLAYERS]; forward Score(playerid); public OnPlayerConnect(playerid) { ScoreTime[playerid] = SetTimerEx("Score", 120000, true, "i", playerid); return 1; } public OnPlayerDisconnect(playerid) { KillTimer(ScoreTime[playerid]); return 1; } public Score(playerid) { SetPlayerScore(playerid, GetPlayerScore(playerid)+1); return 1; }