[Problem] Dialog
#1

i got a problem with the dialog...
it appears but when im writing something its doesnt do anything... never mind what im writing there...
i tried to put a message at the start of the dialog code but its doesnt appear too.. :\
Reply
#2

Can you post your code here??
We can't help you if we don't see where your making a mistake. :S
Reply
#3

its doesnt show even the "Something"
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid==HouseD)
	{
		SendClientMessage(playerid,COLOR_WHITE,"Something");
		if (!strlen(inputtext)) return ShowPlayerDialog(playerid, HouseD, DIALOG_STYLE_INPUT, "House Price", "Price:", "Accept", "Cancel");
		new Float:PosX,Float:PosY,Float:PosZ,str[256],string[256];
		LastHouseID(playerid);
		GetPlayerPos(playerid,PosX,PosY,PosZ);
		format(str,sizeof(str),"%f,%f,%f",PosX,PosY,PosZ);
		if(!isNumeric(inputtext) || strval(inputtext)<0 || strval(inputtext)>9999999) return ShowPlayerDialog(playerid, HouseD, DIALOG_STYLE_INPUT, "Houses Price", "Price between 0-99999999", "Accept", "Cancel");
		format(string,sizeof(string),"INSERT INTO `rHouses` (`ID`,`Owner`,`Price`, `Lock`,`Level`,`IconPos`,`IntPos`,`Interior`,`Renter`,`RentPrice`) VALUES (%d,'ForSale',%d,'1',0,'%s','2308.79,-1212.88,1048.03',6,'None',-1)",hCount,inputtext,str);
		mysql_query(string);
		mysql_free_result();
		HousePickup[hCount] = CreatePickup(1273, 23, PosX, PosY, PosZ);
		new txt[128];
		format(txt,sizeof(txt),"You Created House Number %d",hCount);
		return SendClientMessage(playerid,COLOR_WHITE,txt);
	}
	return 0;
}
Reply
#4

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid==HouseD)
    {
        if(response)
        {      
        SendClientMessage(playerid,COLOR_WHITE,"Something");
        if (!strlen(inputtext)) return ShowPlayerDialog(playerid, HouseD, DIALOG_STYLE_INPUT, "House Price",         "Price:", "Accept", "Cancel");
        new Float:PosX,Float:PosY,Float:PosZ,str[256],string[256];
        LastHouseID(playerid);
        GetPlayerPos(playerid,PosX,PosY,PosZ);
        format(str,sizeof(str),"%f,%f,%f",PosX,PosY,PosZ);
        if(!isNumeric(inputtext) || strval(inputtext)<0 || strval(inputtext)>9999999) return      ShowPlayerDialog(playerid, HouseD, DIALOG_STYLE_INPUT, "Houses Price", "Price between 0-99999999", "Accept",  "Cancel");
        format(string,sizeof(string),"INSERT INTO `rHouses` (`ID`,`Owner`,`Price`, `Lock`,`Level`,`IconPos`,`IntPos`,`Interior`,`Renter`,`RentPrice`) VALUES (%d,'ForSale',%d,'1',0,'%s','2308.79,-1212.88,1048.03',6,'None',-1)",hCount,inputtext,str);
        mysql_query(string);
        mysql_free_result();
        HousePickup[hCount] = CreatePickup(1273, 23, PosX, PosY, PosZ);
        new txt[128];
        format(txt,sizeof(txt),"You Created House Number %d",hCount);
        return SendClientMessage(playerid,COLOR_WHITE,txt);
}  
}
    return 1;
}
Try This
Reply
#5

nope :\ didnt helped... i thought of this but i have another code without the response and its working...
Reply
#6

UP i really need your help here...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)