23.12.2010, 01:42
Hello !
First you should replace your VClock function, i haven't tested but it shouldn't change of what you currently use.
For the bug, you should check if there isn't a "ToggleVClock(toggle)" in the public OnPlayerConnect(playerid).
First you should replace your VClock function, i haven't tested but it shouldn't change of what you currently use.
pawn Код:
forward VClock(playerid);
public VClock(playerid)
{
Vminute++;
if(Vminute >= 60)
{
Vminute = 0;
Vhour++;
if(Vhour >= 24)
{
Vhour = 0;
SetWorldTime(Vhour);
}
}
new string[20];
format(string,sizeof(string),"%d:%.02d %s",Vhour,Vminute,(Vhour >= 12) ? ("PM") : ("AM"));
TextDrawSetString(VClockTD,string);
return 1;
}
For the bug, you should check if there isn't a "ToggleVClock(toggle)" in the public OnPlayerConnect(playerid).