HELP DIALOG
#1

- Please help me. The problem here is when I use the command ((/xayeshop)) will appear DIALOG_STYLE_INPUT, now I will enter the coordinates ((interior)) of the house. After finishing press "Agree" will appear DIALOG_STYLE_MSGBOX, which has to coordinates just ((interior)) just now.

- But now when I enter the coordinates into DIALOG_STYLE_INPUT finished DIALOG_STYLE_MSGBOX it does not show the coordinates you just entered.

- Sorry, my english is not good.

- This my code:
Code:
if(listitem == 0) // House
            {
                if((PlayerInfo[playerid][pCredits] <= 499))
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Ban khong du 500 Credits de su dung dich vu nay.");
                }
                else
                {
                    new szMessage[128], Player;
                    format(szMessage, sizeof(szMessage), "UPDATE `accounts` SET `Credits`=%d WHERE `id` = %d", PlayerInfo[Player][pCredits], GetPlayerSQLId(Player));
                     mysql_function_query(MainPipeline, szMessage, false, "OnQueryFinish", "ii", SENDDATA_THREAD, Player);
                     PlayerInfo[playerid][pCredits] -= 500;
                     
                    new dvhouse = strval(inputtext);
                    ShowPlayerDialog(playerid, DIALOG_DVHOUSE, DIALOG_STYLE_INPUT, "Dich Vu House", "Nhap Toa Do House\nPhi dich vu: 500 Credits\nToa do House: https://grovestreetngg.forumotion.com/t2...-list\nToa do bao gom: [X] [Y] [Z] [Interior]", "Dong Y", "Thoat");
                    SetPVarString(playerid, "DichVuHouse", dvhouse);
                }
            }
Code:
if(dialogid == DIALOG_DVHOUSE)
    {
        if(response)
        {
            dvhouse = GetPVarString(playerid, "DichVuHouse");
            format(string, sizeof(string), "Toa Do: %d", dvhouse);
            ShowPlayerDialog(playerid, DIALOG_DVHOUSE2, DIALOG_STYLE_MSGBOX, "Xac Nhan Xay", string, "Dong Y", "Tu choi");
        }
    }
- Error:
Code:
./includes/KG EDIT.pwn(120342) : error 035: argument type mismatch (argument 3)
./includes/KG EDIT.pwn(120340) : warning 204: symbol is assigned a value that is never used: "dvhouse"
./includes/KG EDIT.pwn(120416) : error 017: undefined symbol "dvhouse"
./includes/KG EDIT.pwn(120416) : warning 202: number of arguments does not match definition
./includes/KG EDIT.pwn(120416) : warning 202: number of arguments does not match definition
./includes/KG EDIT.pwn(120417) : error 017: undefined symbol "dvhouse"
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


3 Errors.
- Video Error Ingame:
https://www.youtube.com/watch?v=hi-DD_Lcj3s
Reply


Messages In This Thread
HELP DIALOG - by KensPTV - 12.01.2020, 04:25
Re: HELP DIALOG - by KensPTV - 12.01.2020, 04:35
Re: HELP DIALOG - by Yasef99 - 12.01.2020, 04:50
Re: HELP DIALOG - by KensPTV - 13.01.2020, 09:46
Re: HELP DIALOG - by KensPTV - 13.01.2020, 11:20
Re: HELP DIALOG - by TokicMajstor - 13.01.2020, 12:33
Re: HELP DIALOG - by KensPTV - 14.01.2020, 03:15
Re: HELP DIALOG - by KensPTV - 14.01.2020, 14:05
Re: HELP DIALOG - by TokicMajstor - 14.01.2020, 14:23
Re: HELP DIALOG - by KensPTV - 14.01.2020, 14:36

Forum Jump:


Users browsing this thread: 1 Guest(s)