21.08.2009, 12:32
I want to make a script when i'm playing 1 minute on the server i get 1 score...How to do that 1minute=1score
Can u please help me..Thx!!
Can u please help me..Thx!!
public OnPlayerConnect(playerid) { SetTimer("", 60000,10); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); }
public OnPlayerConnect(playerid) { SetTimer("", 60000,1); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); }
//above publics forward ScoreUpdate(playerid); OnPlayerConnect(playerid) { SetTimerEx("ScoreUpdate",60000,1,"i",playerid); return 1; } //Under publics ScoreUpdate(playerid) { SetPlayerScore(playerid, GetPlayerScore(playerid)+1); return 1; }
C:\Documents and Settings\Administrator\Desktop\Stunt-server\gamemodes\StuntWorld.pwn(701) : warning 203: symbol is never used: "ScoreUpdate"
C:\Documents and Settings\Administrator\Desktop\Stunt-server\gamemodes\StuntWorld.pwn(683) : warning 235: public function lacks forward declaration (symbol "ScoreUpdate")
forward ScoreUpdate(playerid);