05.12.2011, 15:51
Quote:
Send a clientmessage in the timer to see if it's getting called, and with what values.
|
Here is the new timer code (with debugging prints):
pawn Код:
public TransmissionTimer(message[])
{
printf("Called TransmissionTimer(%s)", message);
SendClientMessageToAll(COLOUR_YELLOW, message);
print("Sent SCMTA debugging message.");
for(new i; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
printf("Playerid %i is connected.", i);
if(GetPlayerTeam(i) == TEAM_PILOT)
{
printf("\tSending message. (Message: %s)", message);
GameTextForPlayer(i, message, 5000, 3);
printf("\tMessage sent. (Message: %s)", message);
}
}
printf("Finished calling TransmissionTimer(%s)", message);
}