Help!!![Strval not readen/recorded]!?
#1

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'..."

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);
            }
      }
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?
Reply
#2

Try For example. Ctrl + F and search for the Price if that doesn't work, try searching for [SellPrice]
Reply
#3

But,is my reading corect?That's the answer I need..Am I reading that price the right way?

EDIT:So,I've done what you told me to do Stink Money,and in deed,SellPrice was missing from CreateHouse,but still not working,si I hardly believe I am not reading the variable correct,help?:S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)