[Help] Housing
#1

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?
Reply
#2

Imagining your code hurts my head.
Reply
#3

lolll...
Reply
#4

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.
Reply
#5

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];
Reply
#6

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.
Reply
#7

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?
Reply
#8

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?
Reply
#9

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.
Reply
#10

Does anyone else have any suggestions?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)