How to make a file save information and load it up like this [Dini]
#1

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

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

Seach
Reply
#3

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

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"!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)