[Ajuda] Nгo formata a mensagem que o player digita
#1

Code:
CMD:ang(playerid, params[])
{	
	new text[128], string[128];	
	GetPlayerName(playerid, Nome1, MAX_PLAYER_NAME);
	format(string, sizeof(string), "[Anuncio %s]: %s: %s", NomeORG(playerid),text , pNomeOriginal[playerid]);
	SendClientMessageToAll(GetPlayerColor(playerid), string);
	print(string);
	return 1;
}
Reply
#2

Precisa da include sscanf e do plugin...
PHP Code:
CMD:ang(playeridparams[])
{
    new 
text[128], string[128];
    if(
sscanf(params"s[128]"text)) return SendClientMessage(playerid, -1"Comando: /ang [texto]");
    
GetPlayerName(playeridNome1MAX_PLAYER_NAME);
    
format(stringsizeof(string), "[Anuncio %s]: %s: %s"NomeORG(playerid),text pNomeOriginal[playerid]);
    
SendClientMessageToAll(GetPlayerColor(playerid), string);
    print(string);
    return 
1;

Reply
#3

Quote:
Originally Posted by Felipealves
View Post
Precisa da include sscanf e do plugin...
PHP Code:
CMD:ang(playeridparams[])
{
    new 
text[128], string[128];
    if(
sscanf(params"s[128]"text)) return SendClientMessage(playerid, -1"Comando: /ang [texto]");
    
GetPlayerName(playeridNome1MAX_PLAYER_NAME);
    
format(stringsizeof(string), "[Anuncio %s]: %s: %s"NomeORG(playerid),text pNomeOriginal[playerid]);
    
SendClientMessageToAll(GetPlayerColor(playerid), string);
    print(string);
    return 
1;

Foi vlw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)