SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/01/2020, 02:59 PM   #11
KensPTV
Big Clucker
 
KensPTV's Avatar
 
Join Date: Oct 2019
Location: Vietnamese
Posts: 110
Reputation: 1
Default Re: HELP DIALOG

- This is error:
Code:
./includes/KG EDIT.pwn(120351) : error 047: array sizes do not match, or destination array is too small
./includes/KG EDIT.pwn(120353) : error 017: undefined symbol "dvhouse"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
- Line 120351:
Code:
					input[playerid] = inputtext;
- Line 120353:
Code:
    				SetPVarString(playerid, "DichVuHouse", dvhouse);
- Code:
Code:
    new input[MAX_PLAYERS][40];
    if(dialogid == DIALOG_XAYESHOP)
    {
        if(response)
	{
	    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;

			input[playerid] = 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/t26-house-interiors-list\nToa do bao gom: [X] [Y] [Z] [Interior]", "Dong Y", "Thoat");
    			SetPVarString(playerid, "DichVuHouse", dvhouse);
       		}
       	}
__________________
Kens.P TV @ Youtuber
Scripting @ Samp
Adminstrator @ Designer @ [KG:RP]
KensPTV is offline   Reply With Quote
Old 14/01/2020, 03:11 PM   #12
KensPTV
Big Clucker
 
KensPTV's Avatar
 
Join Date: Oct 2019
Location: Vietnamese
Posts: 110
Reputation: 1
Default Re: HELP DIALOG

Help me
__________________
Kens.P TV @ Youtuber
Scripting @ Samp
Adminstrator @ Designer @ [KG:RP]
KensPTV is offline   Reply With Quote
Old 15/01/2020, 03:48 PM   #13
KensPTV
Big Clucker
 
KensPTV's Avatar
 
Join Date: Oct 2019
Location: Vietnamese
Posts: 110
Reputation: 1
Default Re: HELP DIALOG

....
__________________
Kens.P TV @ Youtuber
Scripting @ Samp
Adminstrator @ Designer @ [KG:RP]
KensPTV is offline   Reply With Quote
Old 16/01/2020, 03:29 PM   #14
KensPTV
Big Clucker
 
KensPTV's Avatar
 
Join Date: Oct 2019
Location: Vietnamese
Posts: 110
Reputation: 1
Default Re: HELP DIALOG

Oh no, who can help me?
__________________
Kens.P TV @ Youtuber
Scripting @ Samp
Adminstrator @ Designer @ [KG:RP]
KensPTV is offline   Reply With Quote
Old 23/06/2020, 08:07 PM   #15
Filbert
Huge Clucker
 
Join Date: May 2016
Posts: 251
Reputation: 1
Default Re: HELP DIALOG

pawn Code:
if(listitem == 0) {
    if((PlayerInfo[playerid][pCredits] < 500)) 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;
        SetPVarInt(playerid, "DichVuHouse", strval(inputtext));
        ShowPlayerDialog(playerid, DIALOG_DVHOUSE, DIALOG_STYLE_INPUT, "Dich Vu House", "Nhap Toa Do House\nPhi dich vu: 500 Credits\nToa do House: [url]https://grovestreetngg.forumotion.com/t26-house-interiors-list\nToa[/url] do bao gom: [X] [Y] [Z] [Interior]", "Dong Y", "Thoat");
    }
}

pawn Code:
if(dialogid == DIALOG_DVHOUSE) {
    if(response) {
        format(string, sizeof(string), "Toa Do: %d", GetPVarInt(playerid, "DichVuHouse"));
        ShowPlayerDialog(playerid, DIALOG_DVHOUSE2, DIALOG_STYLE_MSGBOX, "Xac Nhan Xay", string, "Dong Y", "Tu choi");
    }
}
Filbert is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CLEO - Automatically select from DIALOG, when DIALOG is opened, and click the first button. AlaDyn172 Scripting Help 0 05/12/2019 01:43 AM
[DIALOG]How i Create A dialog Whent Player Login To Enter in Dialog The Password donhu789 Scripting Help 8 29/09/2013 07:15 AM
Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID Blackazur Scripting Help 1 30/04/2013 06:25 PM
[Dialog] Listing MySQL data inside a List Dialog vIBIENNYx Scripting Help 11 10/09/2012 11:19 PM
[19:58:45] Warning: PlayerDialogResponse PlayerId: 28 dialog ID doesn't match last sent dialog ID, what it means? niels44 Scripting Help 6 13/06/2012 05:53 PM


All times are GMT. The time now is 03:20 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.