SA-MP Forums Archive
Houses - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Houses (/showthread.php?tid=545862)



Houses - StR_MaRy - 11.11.2014

Boys, when we have 100 houses how to write in the line

new HouseInfo[100][hInfo];


Re: Houses - Quickie - 11.11.2014

pawn Код:
new HouseInfo[100][hInfo];
// house info count
// HouseInfo[0][hInfo],HouseInfo[1][hInfo],HouseInfo[2][hInfo],HouseInfo[3][hInfo],HouseInfo[4][hInfo]...

House # 1 == HouseInfo[0][hInfo]
House # 2 == HouseInfo[1][hInfo]
House # 100 == HouseInfo[99][hInfo];



Re: Houses - StR_MaRy - 11.11.2014

C:\Users\StR\Desktop\Server-In-Lucru\gamemodes\server.pwn(1310) : error 010: invalid function or declaration
HouseInfo[0][hInfo],HouseInfo[1][hInfo],HouseInfo[2][hInfo];

when i use // houseinfo[0]

when i use without //houseinfo[0]

C:\Users\StR\Desktop\Server-In-Lucru\gamemodes\server.pwn(1311) : error 010: invalid function or declaration
House # 1 == HouseInfo[0][hInfo]

I have an old house system with property.cfg
-2639.734375,168.677398,7.195300,1.200000,-3.400000,999.400024,0,0,0,0,0,0,The State,Trailer,1000000,0,0,2,1,0,0,1000,1,2045,418,-1,-1,55,3

I create another line, changing -2639.734375,168.677398,7.195300 with my coordinates, but I destroy other houses
and i change houseinfo to 101 same thing...