Guest4390857394857
Unregistered
pawn Code:
forward scoretimer();
public scoretimer()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
seconds[i] ++;
if(seconds[i] == 3600)
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
seconds[i] = 0;
}
}
return 1;
}
Why the above code crashes the server? Can anyone fix the code & also explain me why it crashes?
Posts: 56
Threads: 1
Joined: Dec 2013
Let's Fix the Line
forward scoretimer();
public scoretimer()
I think this line is problme becouse you doesn't made the score timer, with (1000,1)
Okay Thanks..
Please REP ME