SetTimerEx
#1

hi i have a problem.

Код:
GangWarTimer[zone] = SetTimerEx("EndGangWar",GANGWAR_LENGTH,false,"iii",zone, playerGang[killerid], playerGang[playerid],GetPlayerColor(killerid));
i dont can add GetPlayerColor(killerid), i can add but if the gangwar stops, the message comes white, and my color are not white.

my EndGangWar:

Код:
forward EndGangWar(zone, attacker, defender, color);
public EndGangWar(zone, attacker, defender, color)
{
	new str[128];
	if(ZoneInfo[zone][GangWarInProgress] == 1)
	{
		// send the message
		format(str, sizeof(str), "*** GangZone Message: 5 Minuten sind vergangen. %s haben ihre Gangzone von %s verteidigt.", Gangs[ defender ][gName], Gangs[ attacker ][gName] );
	  SendClientMessageToAll(color, str);

		// change the zone colour
		GangZoneStopFlashForAll( zone );
		GangZoneHideForAll( zone );
		GangZoneShowForAll( zone, color );

		// reset the counters
		Gangs[ defender ][UnderAttackCount] = 0;
		Gangs[ attacker ][UnderAttackCount] = 0;
		Gangs[ defender ][DefendCount] = 0;
		ZoneInfo[zone][GangWarInProgress] = 0;
		ZoneInfo[zone][ZoneAttackers] = -1;
	}
}
Reply


Messages In This Thread
SetTimerEx - by Ribber - 19.07.2009, 10:39
Re: SetTimerEx - by Weirdosport - 19.07.2009, 10:41
Re: SetTimerEx - by yezizhu - 19.07.2009, 10:43
Re: SetTimerEx - by Ribber - 19.07.2009, 10:45
Re: SetTimerEx - by yezizhu - 19.07.2009, 10:47
Re: SetTimerEx - by Correlli - 19.07.2009, 11:59
Re: SetTimerEx - by yezizhu - 19.07.2009, 12:35
Re: SetTimerEx - by Ribber - 19.07.2009, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)