[Help] Housing - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Housing (
/showthread.php?tid=85713)
[Help] Housing -
Sean12 - 09.07.2009
Okay so I've made a "Dynamic housing script" and everything works in it but the only problem I have is when I do this "HouseInfo[100][hInfo];" it will compile but when I get ingame all the cars / pickups / objects are gone.. Can someone please help me?
Re: [Help] Housing -
ledzep - 09.07.2009
Imagining your code hurts my head.
Re: [Help] Housing -
Sean12 - 09.07.2009
lolll...
Re: [Help] Housing -
ledzep - 09.07.2009
Using MySQL must have 'dumbed' me down from the whole file-reading, strtok'ing clustf**k that is Godfather and all(most of) her edits.
Have you exceeded any of the SA:MP limits?
Quote:
Generic Limits:
* Players - 200
* Vehicle Models - 70(127 in R3 client)
* Vehicles - 700
* Pickups - 400 (dynamic)
* Objects - 150 (250 possible but unstable) (dynamic)
* Text Draws - 1024 (dynamic)
* Gang Zones - 1024 (dynamic)
* Menus - 128 (dynamic)
|
And post your HouseInfo enum.
Re: [Help] Housing -
Sean12 - 09.07.2009
Yeah I'm pretty sure I pass all thouse and I don't use MYSQL lol but I made that so... I'm looking for SZR's house script or another dynamic house script so that the players can buy houses whereever they want instead of the static housing and when they sell the house it destroys it.. Any suggestions. Unless I fix this I'm good.
pawn Код:
enum hInfo
{
Float:hEntrancex,
Float:hEntrancey,
Float:hEntrancez,
Float:hExitx,
Float:hExity,
Float:hExitz,
hHealthx,
hHealthy,
hHealthz,
hArmourx,
hArmoury,
hArmourz,
hOwner[MAX_PLAYER_NAME],
hDiscription[MAX_PLAYER_NAME],
hValue,
hHel,
hArm,
hInt,
hLock,
hOwned,
hRooms,
hRent,
hRentabil,
hTakings,
hVec,
hVcol1,
hVcol2,
hDate,
hLevel,
};
new HouseInfo[36][hInfo];
Re: [Help] Housing -
ledzep - 09.07.2009
If you have 100 houses, this:
pawn Код:
new HouseInfo[36][hInfo];
0 to 35 = 36 houses
should be:
pawn Код:
new HouseInfo[100][hInfo];
0 to 99 = 100 houses
But yeah, a dynamic system is definitely the way to go. That is one of the reasons scripters have switched to MySQL.
Re: [Help] Housing -
Sean12 - 09.07.2009
Yeah but see this writes it into the folder. I don't want the houses to be around the map and static. I want for the players to make there house where ever they want and if I were to add 100 houses then it would do the same thing to me as it does now. because I would be doing [200] and it would destroy my pickups / text / cars / objects. Any other suggestions?
Re: [Help] Housing -
ledzep - 09.07.2009
I have no idea it would do that.
I can't see why it would do that given the code you've posted.
Do you store your cars, pickups, objects, etc... in the property.cfg?
Re: [Help] Housing -
Sean12 - 09.07.2009
Quote:
Originally Posted by ledzep
I have no idea it would do that.
I can't see why it would do that given the code you've posted.
Do you store your cars, pickups, objects, etc... in the property.cfg?
|
Nope only housing.
Re: [Help] Housing -
Sean12 - 10.07.2009
Does anyone else have any suggestions?