SA-MP Forums Archive
[AJUDA] ID 0 - 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: [AJUDA] ID 0 (/showthread.php?tid=298219)



[AJUDA] ID 0 - humildadeforever - 19.11.2011

Olб! To precisando de ajuda com uma coisa que deve ser simples, mas nгo consigo resolver. Quero que o player coloque no dialog o id de um jogador,mas ao por o ID 0, ele nгo reconhece, й como se nгo tivesse digitado nada. Linha abaixo.
pawn Код:
if(!strval(inputtext)) return ShowPlayerDialog (playerid, 4,DIALOG_STYLE_INPUT, "Death Match Samp", "Digite o ID", "Confirmar", "Sair");
Com outros ID funciona,mas se eu coloco 0, ele aparece o dialog novamente mandando digitar o ID. Jб tentei trocar o !strval por !ReturnUser e dб a mesma coisa. E se por !strlen vai arruinar meu sistema kkk'. Vlw ae.



Re: [AJUDA] ID 0 - DreeH - 19.11.2011

PHP код:
if(strval(inputtext)) return ShowPlayerDialog (playerid4,DIALOG_STYLE_INPUT"Death Match Samp""Digite o ID""Confirmar""Sair"); 
Tenta.


Re: [AJUDA] ID 0 - humildadeforever - 19.11.2011

Quote:
Originally Posted by DreeH
Посмотреть сообщение
PHP код:
if(strval(inputtext)) return ShowPlayerDialog (playerid4,DIALOG_STYLE_INPUT"Death Match Samp""Digite o ID""Confirmar""Sair"); 
Tenta.
Aн nгo vai poder ser numero ^^' Mas vlw ae


@Resolvido por: Gustavo_Araujo via MSN '-'. ( Ele me lembrou que existe isNumeric! Haha) vlww..


Re: [AJUDA] ID 0 - DreeH - 19.11.2011

Quote:
Originally Posted by humildadeforever
Посмотреть сообщение
Aн nгo vai poder ser numero ^^' Mas vlw ae


@Resolvido por: Gustavo_Araujo . ( Ele me lembrou que existe isNumeric! Haha) vlww..
Ah, desculpa, nгo tinha entendido direito sua dъvida, enfim, jб foi resolvida.