/r command not working
#1

this is part of the command im working on every other faction can use it but ems and fire heres the code


Код:
		if(gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire){
			GetPlayerName(playerid, playername, sizeof(playername));
			format(string, sizeof(string), "(DPSCOM) EMS-%d: %s, over", playerid, cmdtext[3]);
			SendMessageToEMS(string);
and the SendMessageToEMS part

Код:
SendMessageToEMS(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_Fire || gteam[i]==Team_EMS) {
SendClientMessage(i, COLOR_RED, str);
}
}
}
}
if i use /r as ems like /r this is a test nothing shows as if it ant working and it only seems to be ems and fire
Reply


Messages In This Thread
/r command not working - by bristan - 23.02.2010, 02:11
Re: /r command not working - by Flake. - 23.02.2010, 04:47
Re: /r command not working - by [LSR]State_Trooper - 23.02.2010, 08:24

Forum Jump:


Users browsing this thread: 1 Guest(s)