.whatever
#1

How can i make a script that will save a certain thing such as rank or money to a file?
Reply
#2

start learning dini or/and dudb from the samp wiki
Thats all about saving stuff to a file
anyway..you need a register system
Reply
#3

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

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
Reply
#5

I have found the wiki page for dini and im learning quick, thanks for helping tho!
Reply
#6

your welcome man its nice to help
Reply
#7

https://sampwiki.blast.hk/wiki/SetPVarInt

i don't seem to understand these could someone guide me?
Reply
#8

Quote:
Originally Posted by Steven82
https://sampwiki.blast.hk/wiki/SetPVarInt

i don't seem to understand these could someone guide me?
Basicly steven, thats to get unreal things from samp, like Kills deaths, ect.


like SetPVarInt(killerid,"kills") +1); ect..
Reply
#9

So i still use dini to save it? I'm confused.
Reply
#10

dini_IntSet then your Variable GetPVar
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)