/changename problems :l
#1

Hi!
I have a problem!
I want create /changename for change my name, but I do not know how to do it!
I tried to do so:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/nome"cmdtexttrue10) == 0)
    {
        
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Change Name","Insert your new name here","Ok","Delete");
        return 
1;
    }
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 1)
    {
        if(
response)
        {
        
SetPlayerName(playerid,inputtext);
        return 
1;
        }
    }
    return 
1;

but dont work! :l

Help mee D:
Reply


Messages In This Thread
/changename problems :l - by [ISS]Daniele_Tom - 06.05.2011, 14:30
Re: /changename problems :l - by Seven_of_Nine - 06.05.2011, 14:32
Re: /changename problems :l - by [ISS]Daniele_Tom - 06.05.2011, 14:34
Re: /changename problems :l - by Biesmen - 06.05.2011, 14:39

Forum Jump:


Users browsing this thread: 1 Guest(s)