[Pedido] Correзгo de palavras - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Correзгo de palavras (
/showthread.php?tid=649309)
Correзгo de palavras -
HelderPT - 06.02.2018
Eu ja loguei em alguns servidores que se digitar em minisculo a 1є letra torna em maiscula e tmb a correзao tipo eu digito nao e corrige para nгo se puderem me ajudar agradeзo

nao achei aqui
Re: Correзгo de palavras -
SrVinnyh - 06.02.2018
Editou algum arquivo do samp?
Re: Correзгo de palavras -
IlanZ - 06.02.2018
PHP код:
public OnPlayerText(playerid, text[])
{
text[0] = toupper(text[0]);
return 1;
}
https://sampwiki.blast.hk/wiki/Toupper
Re: Correзгo de palavras -
HelderPT - 07.02.2018
Nao percebi a logica.
Re: Correзгo de palavras -
HelderPT - 07.02.2018
Sou burro '-' ja percebi oque йra voce sabe o bagulho tipo eu digito nao e ele corrige para nгo com acentuaзao e pontuaзao?
Re: Correзгo de palavras -
JohnBlack - 07.02.2018
Код:
// OnPlayerText
Corrigir(text);
// Final do .pwn
stock Corrigir(msg[])
{
new c = strfind(msg, "nao", true);
if(c > -1) { if(msg[c+1] == 'a') { msg[c+1] = 198; } else { msg[c+1] = 199; } }
}