dialog input error
#1

I use this
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch( 
dialogid )
    {
        case 
DIALOG_REGISTER:
        {
            if (!
response) return Kick(playerid);
            if(
response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD""COL_WHITE"Registering...",""COL_RED"Ai introdus o parola gresita.\n"COL_WHITE"Scrie o parola pentru a te inregistra.","Register","Quit");
                
ShowPlayerDialog(playeridDIALOG_EMAILDIALOG_STYLE_INPUT"Scrie-ti adresa de email.""Alege""Inchide");
                if (!
response) return Kick(playerid);
                if(
response)
                {
                    new 
INI:File INI_Open(UserPath(playerid));
                    
GivePlayerMoney(playerid,10000);
                    
SetPlayerScore(playerid1);
                    
SetPlayerSkin(playerid170);
                    
SetSpawnInfo(playerid,0,PlayerInfo[playerid][pSkin],1283.5896,-1329.5938,13.3824,89.6460,0,0,0,0,0,0);
                    
SetPlayerColor(playerid0xFFFFFFAA);
                    
SpawnPlayer(playerid);
                    
INI_SetTag(File,"data");
                    
INI_WriteInt(File,"Password",udb_hash(inputtext));
                    
INI_WriteInt(File,"Cash",0);
                    
INI_WriteInt(File,"Admin",0);
                    
INI_WriteInt(File,"Level",0);
                    
INI_WriteInt(File,"Skin",0);
                    
INI_WriteInt(File,"Kills",0);
                    
INI_Close(File);
                }
            }
        } 
And i get warning 202: number of arguments does not match definition on next line:
PHP код:
ShowPlayerDialog(playeridDIALOG_EMAILDIALOG_STYLE_INPUT"Scrie-ti adresa de email.""Alege""Inchide"); 
Reply
#2

PHP код:
ShowPlayerDialog(playeridDIALOG_EMAILDIALOG_STYLE_INPUT"Scrie-ti adresa de email.""Alege""Inchide"" "); 
Try that, you were missing a parameter, with this: you have Scrie-ti adresa de email. as tital, alege as text, inchide as button one, and nothing as button 2
Reply
#3

It work, but i get spawn before getting the EMAIL dialog and everybutton i click, nothing is happend. And it's set to kick player if no response. Help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)