[Problem] Dialog -
XePloiT - 22.11.2010
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.. :\
Re: [Problem] Dialog -
Alex_Valde - 22.11.2010
Can you post your code here??
We can't help you if we don't see where your making a mistake. :S
Re: [Problem] Dialog -
XePloiT - 22.11.2010
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;
}
Re: [Problem] Dialog -
ColdXX - 22.11.2010
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
Re: [Problem] Dialog -
XePloiT - 22.11.2010
nope :\ didnt helped... i thought of this but i have another code without the response and its working...
Re: [Problem] Dialog -
XePloiT - 22.11.2010
UP i really need your help here...