SA-MP Forums Archive
[Tutorial] Make your own house system (with vehicles) - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Make your own house system (with vehicles) (/showthread.php?tid=179206)

Pages: 1 2 3 4


Re: Re : Make your own house system (with vehicles) - Kwarde - 11.08.2012

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.


Re: Make your own house system (with vehicles) - Qur - 12.08.2012

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


Re: Make your own house system (with vehicles) - Weaselpwns - 12.08.2012

This helped me out im now plain happy


Re : Make your own house system (with vehicles) - Sandiel - 13.08.2012

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?


Re: Make your own house system (with vehicles) - TaLhA XIV - 13.08.2012

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


Re: Make your own house system (with vehicles) - T_Boy - 26.08.2012

Oh my god!!! How to add houses?!


Re: Make your own house system (with vehicles) - Kwarde - 26.08.2012

@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.


Re: Make your own house system (with vehicles) - Kwarde - 18.04.2014

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


Re: Make your own house system (with vehicles) - Yves - 18.04.2014

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!


Re: Make your own house system (with vehicles) - Kwarde - 18.04.2014

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.


Re: Make your own house system (with vehicles) - mrkiller90 - 18.04.2014

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 ):


Re: Make your own house system (with vehicles) - Kwarde - 18.04.2014

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


Re: Make your own house system (with vehicles) - mrkiller90 - 18.04.2014

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 ):


Re: Make your own house system (with vehicles) - Kwarde - 18.04.2014

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


Re: Make your own house system (with vehicles) - danish007 - 19.04.2014

Add Pastebin link pls


Re: Make your own house system (with vehicles) - iRaiDeN - 20.04.2014

Nice!


Re: Make your own house system (with vehicles) - Giannidw - 22.04.2014

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.


Re: Make your own house system (with vehicles) - rockhopper - 14.06.2014

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


Re: Make your own house system (with vehicles) - rockhopper - 15.06.2014

PLZ Help


Re: Make your own house system (with vehicles) - rockhopper - 16.06.2014

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