What is wrong
#4

PHP код:
(746)stock BuyHouse(playeridhouseid)
(
747) {
(
748)  if (GetPlayerScore(playerid) >= 1000)
(
749)  new string2[256];
(
750)  new name[24];
(
751)  GetPlayerName(playeridnamesizeof(name));
(
752)  #if defined PRINT_HOUSES
(753)    printf("%s Bought House ID %d"namehouseid);
(
754#endif
(755)  GivePlayerMoney(playerid, -hInfo[houseid][Cost]);
(
756)  format(string2,sizeof(string2), HOUSE_FILEhouseid);
(
757)  INI_Open(string2);
(
758)  INI_WriteString("Name"name);
(
759)  INI_WriteInt("Locked"0);
(
760)  INI_Save();
(
761)  INI_Close();
(
762)  hInfo[houseid][Name] = name;
(
763)  hInfo[houseid][Locked] = 0;
(
764)  DestroyPickup(HousePickup[houseid]);
(
765)  HousePickup[houseid] = CreatePickup(127223hInfo[houseid][ExteriorX], hInfo[houseid][ExteriorY],    hInfo[houseid][ExteriorZ]);
(
766)  ShowBoughtHouseMessage(playerid);
 (
767) return 1;
(
768)} 
ERRORS


C:\Users\User\Desktop\1.pwn(749) : error 003: declaration of a local variable must appear in a compound block
C:\Users\User\Desktop\1.pwn(749) : warning 217: loose indentation
C:\Users\User\Desktop\1.pwn(749) : error 017: undefined symbol "string2"
C:\Users\User\Desktop\1.pwn(749) : warning 215: expression has no effect
C:\Users\User\Desktop\1.pwn(749) : error 001: expected token: ";", but found "]"
C:\Users\User\Desktop\1.pwn(749) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
What is wrong - by boyan96 - 18.02.2012, 16:16
Re: What is wrong - by JhnzRep - 18.02.2012, 16:19
Re: What is wrong - by Konstantinos - 18.02.2012, 16:22
Re: What is wrong - by boyan96 - 18.02.2012, 16:27
Re: What is wrong - by Konstantinos - 18.02.2012, 16:30
Re: What is wrong - by boyan96 - 18.02.2012, 17:50
Re: What is wrong - by boyan96 - 18.02.2012, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)