ID 3 doesn't spawn after spectate
#1

Код:
public spec_check(playerid)
{

		if(sec_lowering > 0)
		{
		 	sec_lowering--;
		  	new str[64];
		 	format(str, 64, "Tau liko %d sekundziu", sec_lowering);
		 	TextDrawSetString(Textdraw23, str);
		}
		else if(sec_lowering < 1)
		{
		 	KillTimer(secTimer);
		 	sec_lowering = 0;
		 	TextDrawHideForPlayer(playerid,Textdraw23);
		 	StopSpectate(playerid);
			SetPlayerVirtualWorld(playerid,0);
			TextDrawHideForPlayer(playerid,Textdraw22);
		}
}
Works fine for ID 0,ID 1 but when i shoot ID 2 he gets "Tau liko 1 sekundziu" Which means you got 1 second left and he doesn't spawn but keeps spectatnig? How could i fix the problem?
Reply
#2

anyone?
Reply
#3

What is sec_lowering? Is it defined as global?
Reply
#4

Show your StopSpectate function.
Reply
#5

stopspectate isn't the problem i even tried Toggleplayerspectate and SpawnPlayer( both of them together too) sec_lowering is the seconds when it reaches a zero it spawns them, but for ID 3 it reaches one somehow and doesn't spawn him freezes at the one?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)