14.06.2015, 00:23 
	
	
	
		Currently I'm trying to setup a system to track how long someone has been on a server for and below is what I've found so far
However, I'm getting the above error, I tried looking it up but couldn't find anything, and I don't see anything wrong. tSec, tMin and tHour are already defined in my Player enum so that cannot be the issue.
Secondly, I also want this to add 1 each time the player reaches 60 minutes, how can I go about doing this through mysql? I don't know if I use a Insert Into or Update query or how to write it out to use the tHour enum.
	
	
	
Код:
SetTimerEx("TimeOnServer", 1000, 1, "i", playerid);
forward TimeOnServer(playerid);
public TimeOnServer(playerid)
{
    Player[playerid][tSec] ++;
    if(Player[playerid][tSec]>=60)
    {
        Player[playerid][tMin]++;
        Player[playerid][tSec]=0;
    }
    if(Player[playerid][tMin]>=60)
    {
        Player[playerid][tMin]=0;
        Player[playerid][tHour]++;
    }
}
Код:
error 021: symbol already defined: "SetTimerEx"
Secondly, I also want this to add 1 each time the player reaches 60 minutes, how can I go about doing this through mysql? I don't know if I use a Insert Into or Update query or how to write it out to use the tHour enum.


	