[HELP] How to add /tpm again?
#10

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by FreddeN
Great, how would that look like, I got problems to put it in...
pawn Код:
if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
  // _send_the_msg_
}
Alright, it almost works, just one error to fix...

Код:
	if (strcmp("/tpm", cmdtext, true, 4) == 0)
	{
		new str[128],pName[MAX_PLAYER_NAME];
	  GetPlayerName(playerid,pName,sizeof(pName));
	  format(str,sizeof(str),"TeamMsg (%s): %s",pName,cmdtext/text);
	  for(new i = 0; i < MAX_PLAYERS; i++)
  	{
    	if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
    	{
 	  		SendClientMessage(i,0xFFFF00FF,str);
    	}
  	}
	}
The error is...

Код:
undefined symbol "text"
Reply


Messages In This Thread
[HELP] How to add /tpm again? - by FreddeN - 02.11.2009, 16:01
Re: [HELP] How to add /tpm again? - by klavins - 02.11.2009, 16:24
Re: [HELP] How to add /tpm again? - by MachineHead - 02.11.2009, 16:27
Re: [HELP] How to add /tpm again? - by FreddeN - 02.11.2009, 17:03
Re: [HELP] How to add /tpm again? - by GTA967 - 02.11.2009, 17:26
Re: [HELP] How to add /tpm again? - by FreddeN - 02.11.2009, 19:29
Re: [HELP] How to add /tpm again? - by GTA967 - 02.11.2009, 19:33
Re: [HELP] How to add /tpm again? - by FreddeN - 02.11.2009, 19:40
Re: [HELP] How to add /tpm again? - by Correlli - 02.11.2009, 19:42
Re: [HELP] How to add /tpm again? - by FreddeN - 02.11.2009, 19:51

Forum Jump:


Users browsing this thread: 2 Guest(s)