03.04.2012, 11:01
OK,so first of all I must say I am very thankful to the admin who deleted my topic related to the my house system,because I bumped it!(I am not hyronic,I swear,you really helped me much,as I was afraid I may get a warn,I did not repost,and focused on the code much better,so NOW,it's really working,you helped me realise what's wrong,and that makes me feel a lot better,as I did not ask for help here.Thank you admin,whoever you were).OK,now there's a very small problem in the script,I don't know how to read the selling price of the house via dialog
,is this way good?
"JUMP HERE!!!The message above is non-topic related,you may read it tou'..."
There are no real errors,but the fact that in game,even if I enter the price,nothing happens...
...I guess I don't have to show you the whole code(enum,stock etc.) as I said in the comment line,I think the problem is the way I read the price.Help please?

"JUMP HERE!!!The message above is non-topic related,you may read it tou'..."
pawn Code:
if(dialogid==13)
{
if(response==0) return SendClientMessage(playerid,COLOR_RED,"Action aborted!");
if(response==1)
{
new houseid;
new pName[24];
GetPlayerName(playerid,pName,sizeof(pName));
new string[250];
HouseInfo[houseid][SellPrice]=strval(inputtext);//I am 100% the error is here
HouseInfo[houseid][hSell] = 1;
format(string,sizeof(string),"{FOR SELL}\nOwner:%s\nSell price:%d$",HouseInfo[houseid][Owner],HouseInfo[houseid][SellPrice]);
Update3DTextLabelText(HouseInfo[houseid][hText],COLOR_BLUE,string);
}
}
