Help with edit (rep+)
#7

i add and here but don't work
PHP код:
stock OpenHouseDialog(playeridhouseid)
{
  if(
strcmp(hInfo[houseid][Name], "ForSale",true) == 0)
  {
    new 
string[180];
    if(
GetPlayerScore(playerid) >= 1000) return SendClientMessage(playerid0xFFFFFFAA"You have to get 1000 score before you can use this command");
    if(
GetPlayerMoney(playerid) >= hInfo[houseid][Cost]) { format(string,sizeof(string),"{33AA33}Buy this house for $%d"hInfo[houseid][Cost]); }
    else { 
format(string,sizeof(string),"{FF0000}Buy this house for $%d"hInfo[houseid][Cost]); }
    
ShowPlayerDialog(playeridDIALOG_FORSALE_HOUSEDIALOG_STYLE_LIST"{33AA33}For Sale!"string"OK""Close");
    return 
1;
  }
  else
  {
    new 
string2[180];
    new 
name[24];
    
GetPlayerName(playerid,name,sizeof(name));
    if(
strcmp(hInfo[houseid][Name], nametrue) == 0)
    {
      
ShowPlayerDialog(playeridDIALOG_MY_HOUSE,DIALOG_STYLE_LIST"{33AA33}Welcome back to your house""{33AA33}Enter in your house\n{33AA33}Open/Close the door\n{33AA33}Sell your house""OK""Close");
      return 
0;
    } 
Reply


Messages In This Thread
Help with edit (rep+) - by boyan96 - 22.02.2012, 05:28
Re: Help with edit (rep+) - by emokidx - 22.02.2012, 05:31
Re: Help with edit (rep+) - by boyan96 - 22.02.2012, 05:52
Re: Help with edit (rep+) - by JamesC - 22.02.2012, 05:57
Re: Help with edit (rep+) - by emokidx - 22.02.2012, 05:59
Re: Help with edit (rep+) - by boyan96 - 22.02.2012, 06:17
Re: Help with edit (rep+) - by boyan96 - 22.02.2012, 06:54
Re: Help with edit (rep+) - by park4bmx - 22.02.2012, 06:56
Re: Help with edit (rep+) - by emokidx - 22.02.2012, 06:57

Forum Jump:


Users browsing this thread: 3 Guest(s)