SA-MP Forums Archive
Why Doesn't this work? - 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: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why Doesn't this work? (/showthread.php?tid=165635)



Why Doesn't this work? - Kevin_Joshen - 05.08.2010

So.... i have this houseing script i have, and it works great in the following way:

1. person finds a house
2. person buy it for the price
3. person exits game and comes back
4. person goes back into his house and continues to have fun



That's just an improv of what someone might do.... but the error i'm having is where i need to write the files.

Write now, its all setup to be saving a file in /house/users and then save the file accordingly to when the player buys a house and such...

but it's not creating the file in that directory. it's just still empty. I have tested it even

Also, if i restart my server, then all the houses are for sale again because of the file not being saved...


PLEASE HELP! (If needed i will pm you the script)


-Kevin
Crazy Awesome (Owner)


Re: Why Doesn't this work? - Ash. - 05.08.2010

Have you tried creating the file the information is supposed to be written to? If this still doesnt work, PM me the script.


Re: Why Doesn't this work? - playbox12 - 05.08.2010

It probaly stores in an enum, make sure it saves in an file. In an call back(OnPlayerUpdate) (OnPlayerDisconnect) check if there is something like: SavePlayerData, SaveHouseFile