[Tutorial] Make your own house system (with vehicles)
#41

Quote:
Originally Posted by pseudonyme
View Post
You should use Djson to have only one file for all your houses.
I know. This tutorial is kinda out-dated (aka old). I prefer DJSON too (I always use it these days), since it's "noob-friendly" (it's almost the same usage as DINI) and it's fast <3 (I know, Y_INI is faster but Y_INI uses too much includes, and beginners might not really get the hand of Y_INI. The first time I tried to use it, I couldn't seem to get it to work).

@Qur: Thank you very much. Unfortunately, I don't use Y_INI so I don't have knowledge about it. Perhaps Y_Less or someone with knowledge about it could help you. And I see you might have forgotten to include "streamer" and "y_ini", since the symbols don't exist.
Reply
#42

About the streamer you're right its fixing only the first 2 errors.. that's the thing I know.. but about the Y_INI.. i have it defined and I'm using it.. but it its still giving errors..

thanks anyway

I think I'll find out what's the problem
Reply
#43

This helped me out im now plain happy
Reply
#44

For example, if I set the house's interior to let's say 5, and another house to interior 5....
Would 2 different people, entering two different houses, end up in the same house/interior?
Reply
#45

Yes,want to fix it?
make their virtual worlds diffrent.
Reply
#46

Oh my god!!! How to add houses?!
Reply
#47

@Sandiel: Just like TaLhA XIV said, make different virtual worlds. I always do it like this: Virtual world of the house = HouseID + 1 (So house ID 0 = virtual world 1, ID 1 = 2, ID 2 = 3 etc.). Fixed
@T_Boy: If you did it allright, they should exist already, on position 0,0,0,0 (X,Y,Z,A). You must have the /tphouse stuff, /tphouseexit etcetera.
Reply
#48

Unfortunately I can't figure out to get Y_INI working. I downloaded the whole package from Y_Less (idk what is name was) but it gives errors all the time so I stick with DJSON
Reply
#49

Quote:
Originally Posted by Kwarde
View Post
Unfortunately I can't figure out to get Y_INI working. I downloaded the whole package from Y_Less (idk what is name was) but it gives errors all the time so I stick with DJSON
i rather try get that error fixed because for myself i don't like djson my gamemode at the moment is using it and am going to convert it and can you tell me what error you getting?

however, Nice tutorial!
Reply
#50

Quote:
Originally Posted by Yves
View Post
i rather try get that error fixed because for myself i don't like djson my gamemode at the moment is using it and am going to convert it and can you tell me what error you getting?

however, Nice tutorial!
I don't remember, it's been a while; but it had something to do while starting the server. The console gave some errors and the entire gamemode wouldn't work. I tried many things and it still didn't work. I should retry it soon perhaps (once I got time for scripting again), but for now, I'll stick with DJSON.
Reply
#51

The problem is that Im already using Yini for the player files and I need to make houses and cant figure out what Iam doing wrong ):
Reply
#52

Do you already have a script? If yes; please send it to me via PM and I'll have a look.
I can recall that you asked how to load files using Y_INI; Since I don't use it, no idea. But I should be able to look that up in the official Y_INI topic
Reply
#53

Quote:
Originally Posted by Kwarde
View Post
Do you already have a script? If yes; please send it to me via PM and I'll have a look.
I can recall that you asked how to load files using Y_INI; Since I don't use it, no idea. But I should be able to look that up in the official Y_INI topic
Yes I have, I appreciate that soooo much! I will send you a pm with the code, it is really awesome if you could help me I like spend 4 days trying to solve this and cant ):
Reply
#54

I replied. It might work now (ain't go the time to test it).
Sometimes it is much better to choose an easier way.
Reply
#55

Add Pastebin link pls
Reply
#56

Nice!
Reply
#57

If you change this lines
pawn Code:
HouseInfo[houseid][hEnterX] = dini_Float(fstring, "EnterX");
to this lines:
pawn Code:
INI_Float(fstring, "EnterX", HouseInfo[houseid][hEnterX]);
Not tested, but i think it works.
Reply
#58

How to add houses Plz i need it i undestood Everthing No errors Just how to add and wat does Add a map In your scriptfiles mean ? Plz urgent
Reply
#59

PLZ Help
Reply
#60

For God sake Help me someone plz plz plz ..................
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)