SA-MP Forums Archive
[Ajuda] Imputtext - 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] Imputtext (/showthread.php?tid=633591)



Imputtext - Scorpion659 - 03.05.2017

da erro na linha do inputtext, alguem pode me ajudar?

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DialogNome){
        if(
response){
            if(
strlen(inputtext) < || strleninputtext ) > 20 || !strlen(inputtext)){
                
inputtext nomeplayer[playerid];
            }else{
SendClientMessage(playerid, -1"{FF0000}[SERVER]>> Nome Invбlido!");}
        }
    }
    return 
1;




Re: Imputtext - DelK - 03.05.2017

Nome do erro ?


Re: Imputtext - Scorpion659 - 03.05.2017

Quote:
Originally Posted by DelK
Посмотреть сообщение
Nome do erro ?
error 046: unknown array size (variable "inputtext")


Re: Imputtext - pWesley - 03.05.2017

inputtext = nomeplayer[playerid];

O erro tб aqui. Й para troca de nick? Se for, experimente usar:

format(nomeplayer[playerid], sizeof(nomeplayer), inputtext);


Re: Imputtext - CZ - 03.05.2017

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[]) 

    if(
dialogid == DialogNome){ 
        if(
response){ 
            if(
strlen(inputtext) < || strleninputtext ) > 20 || !strlen(inputtext));{ 
                
inputtext nomeplayer[playerid]; 
            }else{
SendClientMessage(playerid, -1"{FF0000}[SERVER]>> Nome Invбlido!");} 
        } 
    } 
    return 
1




Re: Imputtext - moura98 - 03.05.2017

Nгo entendi sua lуgica como ele vai atribuir um valor !strlen(inputtext) (vazio)?


Re: Imputtext - [BOPE]Seu._.Madruga - 03.05.2017

creio que seria o inverso.

Код:
inputtext = nomeplayer[playerid];
PHP код:
nomeplayer[playerid] = inputtext