25.04.2011, 19:36
i need to make kill timer
onfilterscriptinit i got this
SetTimer("GiveScore", 60000, true);
then if someone types /afk there is this
KillTimer(GiveScore); // i get error error 076: syntax error in the expression, or invalid function call
then if someone types /afk again there is
SetTimer("GiveScore", 60000, true);
and public is
forward GiveScre;
public GiveScore()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
}
}
}
onfilterscriptinit i got this
SetTimer("GiveScore", 60000, true);
then if someone types /afk there is this
KillTimer(GiveScore); // i get error error 076: syntax error in the expression, or invalid function call
then if someone types /afk again there is
SetTimer("GiveScore", 60000, true);
and public is
forward GiveScre;
public GiveScore()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
}
}
}