SA-MP Forums Archive
How to make a file save information and load it up like this [Dini] - 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: How to make a file save information and load it up like this [Dini] (/showthread.php?tid=358119)



How to make a file save information and load it up like this [Dini] - jueix - 09.07.2012

Hi i am wondering how to make a file save information and load it up like this.

Quote:

//I know how to do this bit
Playername = Jueix
Cash = 50000
Alevel = 5
//Need help here with doing it in there file or a new file which will save all houses etc
House1 = CreateHouse(posx,posy,posz,intx,inty,intz,price,se llprice,vw);
House2 = CreateHouse(posx,posy,posz,intx,inty,intz,price,se llprice,vw);
House3 = CreateHouse(posx,posy,posz,intx,inty,intz,price,se llprice,vw);

Basicly the idea i have is when they buy a house it makes a new line in the players save file which will = House4 = CreateHouse(posx,posy,posz,intx,inty,intz,price,se llprice,vw); when its in the save file.

What the plan is, is to allow players to have unlimited amount of houses which they can enter and sell and things. If anyone can help me do this please help thank you.


Re: How to make a file save information and load it up like this [Dini] - RedJohn - 09.07.2012

Is there anybody normal who use ****** or Sa-mp Forum Search?

Seach


Re: How to make a file save information and load it up like this [Dini] - jueix - 09.07.2012

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
Is there anybody normal who use ****** or Sa-mp Forum Search?

Seach
No help searched it all but can't save the house thing into one file and make it load up when server starts again.


Re: How to make a file save information and load it up like this [Dini] - RedJohn - 10.07.2012

Quote:
Originally Posted by jueix
Посмотреть сообщение
No help searched it all but can't save the house thing into one file and make it load up when server starts again.
Then you should try Cali-Houses. You can create house anywhere and it saves to folder "Houses"!