#1

I have this :

pawn Код:
if(dialogid == JOINVIP)
        {
        if(response)
        {
            if(!strlen(inputtext)) return ShowPlayerDialog(playerid, JOINVIP, DIALOG_STYLE_INPUT, "Please enter the password to join UC.", "Password:", "Submit", "Cancel");
            else if(!strcmp(inputtext, "passowrd", true))
            {
                team[playerid] = 8;
                ShowPlayerDialog(playerid, JOINVIP, DIALOG_STYLE_INPUT, "Please enter the password to join V.I.P.", "Password:", "Submit", "Cancel");
                SendClientMessage(playerid,GREEN,"You may now spawn.");
                SetPlayerColor(playerid,BLUE);
                SetPlayerTeam(playerid, 1);
                SetPlayerFacingAngle(playerid,5.6779);
                GivePlayerWeapon(playerid,31,300);
                GivePlayerWeapon(playerid,24,300);
                GivePlayerMoney(playerid, 20000);
                SetPlayerInterior(playerid,0);
                SetPlayerArmour(playerid, 100);
                return 1;
            }
        }
        else SendClientMessage(playerid, 0xff0000FF,"Cancelled");
    }
    return 0;
}
but after the player types the password it won't go away, then the player has to cancel it
Reply
#2

Remove...
pawn Код:
ShowPlayerDialog(playerid, JOINVIP, DIALOG_STYLE_INPUT, "Please enter the password to join V.I.P.", "Password:", "Submit", "Cancel");
.. it's the one after team[playerid] = 8;
Reply
#3

oh yeah, I didn't know that was there lmao

thx bro
Reply
#4

Yet againa nother useless thread.....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)