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!