[Ajuda] formatando textdraw
#5

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Comando
PHP код:
CMD:texto(playerid, params[])
{
    new 
texto[128], tamanho[250];
    if(
sscanf(params, "s", texto)) return SendClientMessage(playerid,-1,"Erro: uso correto /texto 'mensagem' ");
    
format(tamanho, sizeof(tamanho), "%s", texto);
    
TextDrawSetString(Textdraw1,tamanho);
        
TextDrawShowForAll(Textdraw1);
    return 
1;
} 
Vlw Schocc, eu nгo imaginava que tinha que colocar o return para que funciona-se os comandos em sscanf, mais eu tive que por "s[128", mais deu certo obrigado!
Reply


Messages In This Thread
formatando textdraw - by Supera - 07.10.2012, 20:39
Re: formatando textdraw - by Supera - 07.10.2012, 21:07
Re: formatando textdraw - by hard_dalzot - 07.10.2012, 21:11
Re: formatando textdraw - by Schocc - 07.10.2012, 21:22
Re: formatando textdraw - by Supera - 07.10.2012, 21:32
Re: formatando textdraw - by Schocc - 07.10.2012, 21:37
Re: formatando textdraw - by DrTHE - 07.10.2012, 21:46

Forum Jump:


Users browsing this thread: 1 Guest(s)