Player textdraw only works for id 0?
#8

This is where im setting the string
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);
        }
    }
But the weird thing is it only works for ID 0
Reply


Messages In This Thread
Player textdraw only works for id 0? - by thimo - 03.12.2014, 14:44
Re: Player textdraw only works for id 0? - by UltraScripter - 03.12.2014, 14:46
Re: Player textdraw only works for id 0? - by Vince - 03.12.2014, 14:48
Re: Player textdraw only works for id 0? - by thimo - 03.12.2014, 14:48
Re: Player textdraw only works for id 0? - by BroZeus - 03.12.2014, 15:14
Re: Player textdraw only works for id 0? - by thimo - 03.12.2014, 15:58
Re: Player textdraw only works for id 0? - by Jay_ - 03.12.2014, 16:06
Re: Player textdraw only works for id 0? - by thimo - 03.12.2014, 17:02
Re: Player textdraw only works for id 0? - by Jay_ - 03.12.2014, 21:14
Re: Player textdraw only works for id 0? - by thimo - 04.12.2014, 05:33

Forum Jump:


Users browsing this thread: 1 Guest(s)