[PEDIDO] Comando
#7

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
public OnPlayerCommandText()

new nome[MAX_PLAYER_NAME],str[128];
GetPlayerName(playerid,nome,sizeof(nome));
format(str,sizeof(str),"{FF00FF}%s{FFFFFF} (%d): %s",nome,playerid,text);
SendClientMessageToAll(-1,str);
return 0x0;
}
lol

pawn Код:
public OnPlayerText(playerid, text[])
{
     new n[24], string[128];
     format(string, sizeof(string),"{FF00FF}%s{FFFFFF}(%i): %s",GetPlayerName(playerid, n, 24),playerid, text);
     SendClientMessageToAll(-1, string);
     return 0;
}
acho que o OnPlayerCommandText nгo existe o parвmetro text.
Reply


Messages In This Thread
[PEDIDO] Comando - by ViCtOr_Mc - 22.06.2011, 21:47
Re: [PEDIDO] Comando - by Macintosh - 22.06.2011, 23:20
Re: [PEDIDO] Comando - by RockFire - 22.06.2011, 23:29
Re: [PEDIDO] Comando - by ViCtOr_Mc - 22.06.2011, 23:42
Re: [PEDIDO] Comando - by ViCtOr_Mc - 23.06.2011, 20:24
Re: [PEDIDO] Comando - by Ricop522 - 23.06.2011, 20:25
Re: [PEDIDO] Comando - by TheGarfield - 23.06.2011, 20:36
Re: [PEDIDO] Comando - by ViCtOr_Mc - 23.06.2011, 20:38
Re: [PEDIDO] Comando - by Shadoww5 - 23.06.2011, 20:43
Re: [PEDIDO] Comando - by Ricop522 - 23.06.2011, 21:54

Forum Jump:


Users browsing this thread: 1 Guest(s)