Setting player time
#1

SetPlayerTime not work, but SCM there worked. Whats bad?
Код:
	new Float:x, Float:y, Float:z;
	new hr, m;
	GetPlayerPos(playerid, x, y, z);
	GetPlayerTime(playerid, hr, m);
	if(x >= 1.0)
	{
		SetPlayerTime(playerid, hr+1, m);
	}
Reply
#2

anyone
Reply
#3

Код:
        TogglePlayerClock(playerid, 1);
	new Float:x, Float:y, Float:z;
	new hr, m;
	GetPlayerPos(playerid, x, y, z);
	GetPlayerTime(playerid, hr, m);
	if(x >= 1.0)
	{
		SetPlayerTime(playerid, hr+1, m);
	}
Good luck mate hope this helped u
Reply
#4

its not this man..
Reply
#5

Can you tell me whats wrong exactly?
Reply
#6

time is not changed for all + 1.0 position.
it is on OPU
Reply
#7

Then put:
Код:
 TogglePlayerClock(playerid, 1);
under "OnPlayerConnect"
Reply
#8

damn it man, its not this.
anyone know why code is not work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)