SA-MP Forums Archive
A FS - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A FS (/showthread.php?tid=481996)



A FS - Hammad97 - 18.12.2013

SOLVED !


Re: A FS - Tayab - 18.12.2013

First of all 180000 is 3 minutes not one minute. For one minute, put 1000*60 OR 60000

And you typed playerid instead of i.

pawn Код:
#include <a_samp>

public OnGameModeInit()
{    
    SetTimer("Score", 180000,true);    
    return 1;
}
forward Score();
public Score()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        SetPlayerScore(i,GetPlayerScore(i)+1);
    }
    return 1;
}