.whatever - 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: .whatever (
/showthread.php?tid=146111)
.whatever -
luigifan9 - 05.05.2010
How can i make a script that will save a certain thing such as rank or money to a file?
Re: .whatever -
boelie - 05.05.2010
start learning dini or/and dudb from the samp wiki
Thats all about saving stuff to a file
anyway..you need a register system
Re: .whatever -
luigifan9 - 05.05.2010
no, i have one. just wanted something to make ranks or like licence = true or stuff like that and save it to a file. Thanks for telling me what to learn though.
Re: .whatever -
boelie - 05.05.2010
ah ye...you could use 'setpvarint' and getpvaring for license and stuff
its same as using 'enum' but newer and easyer;
https://sampwiki.blast.hk/wiki/SetPVarInt
for example;
SetPVarInt(playerid, "LICENSE", 0);//the player has no license
and
SetPVarInt(playerid, "LICENSE", 1);//the player has license
so if you made that..you could do
something like this
if (playerentervehicleblala)
{
if(GetPVarInt(playerid, "LICENSE"))
{
sendclientmessage "you have a license
{
else
{
you dont XD
Re: .whatever -
luigifan9 - 05.05.2010
I have found the wiki page for dini and im learning quick, thanks for helping tho!
Re: .whatever -
boelie - 05.05.2010
your welcome man
its nice to help
Re: .whatever -
Steven82 - 05.05.2010
https://sampwiki.blast.hk/wiki/SetPVarInt
i don't seem to understand these could someone guide me?
Re: .whatever -
-Rebel Son- - 05.05.2010
Quote:
Originally Posted by Steven82
|
Basicly steven, thats to get unreal things from samp, like Kills deaths, ect.
like SetPVarInt(killerid,"kills") +1); ect..
Re: .whatever -
Steven82 - 05.05.2010
So i still use dini to save it? I'm confused.
Re: .whatever -
-Rebel Son- - 06.05.2010
dini_IntSet then your Variable GetPVar