03.12.2014, 17:02
This is where im setting the string
But the weird thing is it only works for ID 0
pawn Код:
public GlobalTimer(playerid)
{
Minutes++;
// Checks for clock 'defining' minutes limit as 60 and hours limit as 24
if(Minutes >= 60)
{
Minutes = 00;
Hours++;
}
if(Hours >= 24)
{
Hours = 00;
}
new clocktime[20];
format(clocktime, sizeof(clocktime), "~w~%02d:%02d", Hours, Minutes);
PlayerTextDrawSetString(playerid, Clock[playerid], clocktime);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerTime(i, Hours, Minutes);
}
}