Help with edit (rep+)
#3

i have error C:\Users\User\Desktop\house.pwn(748 ) : error 035: argument type mismatch (argument 2)

Code
PHP код:
stock BuyHouse(playeridhouseid)
{
if(
GetPlayerScore(playerid) >= 1000) return SendClientMessage(playerid"You have to get 1000 score before you can use this command");
  new 
string2[256];
  new 
name[24];
  
GetPlayerName(playeridnamesizeof(name));
  
#if defined PRINT_HOUSES
    
printf("%s Bought House ID %d"namehouseid);
  
#endif
  
GivePlayerMoney(playerid, -hInfo[houseid][Cost]);
  
format(string2,sizeof(string2), HOUSE_FILEhouseid);
  
INI_Open(string2);
  
INI_WriteString("Name"name);
  
INI_WriteInt("Locked"0);
  
INI_Save();
  
INI_Close();
  
hInfo[houseid][Name] = name;
  
hInfo[houseid][Locked] = 0;
  
DestroyPickup(HousePickup[houseid]);
  
HousePickup[houseid] = CreatePickup(127223hInfo[houseid][ExteriorX], hInfo[houseid][ExteriorY], hInfo[houseid][ExteriorZ]);
  
ShowBoughtHouseMessage(playerid);
  return 
1;

Line of error
PHP код:
if(GetPlayerScore(playerid) >= 1000) return SendClientMessage(playerid"You have to get 1000 score before you can use this command"); 
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: 1 Guest(s)