SA-MP Forums Archive
Saving And Loading - 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)
+--- Thread: Saving And Loading (/showthread.php?tid=522055)



Saving And Loading - hossamkandil - 25.06.2014

Hi Guys
I'm Trying To Make A Script Which Makes A Player Have Arrays Like Gold bars, Weed, etc.....
I Made It But I Can't Make It Save The Amount Of Gold You Have And Then Load It When You Re-login.

I've Searched *******,******, This Forum But I Still Don't Know How To Do It Or How It Works Please Help Fast.

Thank You

Here's The Code
Quote:

new gold[500];
new goldz[124];

Quote:

CMD:goldme(playerid,params[])
{
gold[playerid] += 10;
return 1;
}
CMD:mygold(playerid,params[])
{
format(goldz,sizeof(goldz),"[System]: You Have %i Goldbars",gold);
SendClientMessage(playerid,COLOR_LIME,goldz);
return 1;
}




Re: Saving And Loading - WardenCS - 25.06.2014

do you have any account registering system?


Re: Saving And Loading - VenomMancer - 25.06.2014

You using y_ini ?


Re: Saving And Loading - hossamkandil - 25.06.2014

Yes I Have An Account Registering But I Don't Know How To Use y_ini I Just Need Any Method If It's dini y_ini Anything To Save These Variables