23/10/2021 23:49
(23/10/2021 22:39)EXPEDITO_011 Escreveu:(23/10/2021 22:35)k2bi_YT Escreveu: Codigo?
(23/10/2021 22:35)k2bi_YT Escreveu: Codigo?
CMD:an(playerid, params[])
{
new string[256], aNome[MAX_PLAYER_NAME], tAn[256];
if(sscanf(params, "tAn[256]", tAn)) return SendClientMessage(playerid, GROOVE_COR, "[ERRO] Use /an [Texto]");
format(string, sizeof(string), "%s ANUNCIOU: %s", tAn);
SendClientMessageToAll(MENSANGEMA_COR, string);
return 1;
}
return 1;
}
"tAn[256]"
Isso aí não existe. Usa-se s para string, d para números inteiros e i para números reais.
Deveria ser:
Código:
if(sscanf(params, "s[256]", tAn))
Discente de Sistemas de Informação no Centro Federal de Ensino Tecnológico(CEFET/RJ)
Programador SA-MP desde 2012
Programador SA-MP desde 2012
Não envie dúvidas por inbox, crie um tópico. Sua dúvida pode ser a dúvida de outro alguém, e seu tópico ajudará outras pessoas no futuro.