[Ajuda] Comando "@" "!", etc
#4

Quote:
Originally Posted by wallon
Посмотреть сообщение
Код:
//Poe  no topo so pra nun da erro
#define COLOR_KRED 0xFF0000FF
//////////////////////////////////////
	if(text[0] == '#' || text[0] == '@')
	{
	    new string[256];
		new adminChat[256];
		strmid(adminChat,text,1,strlen(text));
		format(string, sizeof(string),"[Admins]%s: %s", Player(playerid), adminChat);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i) && IsPlayerAdmin(i) || jadmin[i] && IsPlayerConnected(i))
			{
  				SendClientMessage(i, COLOR_KRED, string);
			}
		}
		return 0;
	}
1 - Por que sem o define daria erro ?

2 - Pra que strmid ?

3 - Cade a stock Player(playerid) .. ?
Reply


Messages In This Thread
[Ajuda] Comando "@" "!", etc - by [Red]Maninho - 08.07.2011, 16:32
Re: [Ajuda] Comando "@" "!", etc - by Josma_cmd - 08.07.2011, 16:53
Re: [Ajuda] Comando "@" "!", etc - by wallon - 08.07.2011, 16:54
Re: [Ajuda] Comando "@" "!", etc - by Shadoww5 - 08.07.2011, 17:08
Respuesta: [Ajuda] Comando "@" "!", etc - by [Red]Maninho - 08.07.2011, 17:13
Re: [Ajuda] Comando "@" "!", etc - by Josma_cmd - 08.07.2011, 17:15
Re: [Ajuda] Comando "@" "!", etc - by rjjj - 08.07.2011, 17:19
Respuesta: [Ajuda] Comando "@" "!", etc - by [Red]Maninho - 08.07.2011, 17:35

Forum Jump:


Users browsing this thread: 7 Guest(s)