SA-MP Forums Archive
Help, Dini question - 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: Help, Dini question (/showthread.php?tid=147263)



Help, Dini question - Faith - 11.05.2010

Hi Sa-mp.

I have a question about dini.
I've made a "planttree" command, that saves the players tree in a file with +1 (no objects made so far).

The question comes here.
I'd like to save the players location to that tree, so that when any player is nearby the tree, he can /cuttree and it will remove the tree from the owner. (the person who planted the tree). -1 for owner.


Is that possible?
If so, how can i do that?


Thanks.


Re: Help, Dini question - ViruZZzZ_ChiLLL - 11.05.2010

I hope this helps a little bit
https://sampwiki.blast.hk/wiki/Useful_Fu....28Dini.inc.29


Re: Help, Dini question - Faith - 11.05.2010

I did try look at it though.
I can't seem to find a solution. but thanks.


Re: Help, Dini question - ViruZZzZ_ChiLLL - 11.05.2010

Quote:
Originally Posted by Faith
I did try look at it though.
I can't seem to find a solution. but thanks.
https://sampwiki.blast.hk/wiki/GetPlayerPos
GetPlayerPos might be the solution.


Re: Help, Dini question - Faith - 11.05.2010

Might be that yes, but how do i write it to a userfile?


And then the other part comes.
How do i dini_Get it out, and then make the owner of the tree -1, when someone cuts the tree?


Re: Help, Dini question - ViruZZzZ_ChiLLL - 11.05.2010

Uhmmm... I'm trying to learn DINI myself right now
So sorry I can't help you
http://forum.sa-mp.com/index.php?topic=126584.0
Try to study that


Re: Help, Dini question - Faith - 11.05.2010

I've still not been able to make this to work.
Any other suggestions that i could do?

Thanks


I'm trying to figure out another way...


Re: Help, Dini question - Steven82 - 11.05.2010

Dini to save stuff is the best way to go...(: