SA-MP Forums Archive
[HELP]serious help requested. - 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]serious help requested. (/showthread.php?tid=77953)



[HELP]serious help requested. - Ignas1337 - 16.05.2009

Hello everyone. I've been scripting for over a year now and decided to try out mysq, although I do not where to start.
I would like to know how do I get/load and store/save some of my values. I would manage to do anything with arrays, and all I ask for is for two functions: load and save. any values should do. thank you.


Re: [HELP]serious help requested. - James_Alex - 16.05.2009

you can use files example
pawn Код:
public SaveThing()
{
  new File:Tfile;
  Tfile = fopen("thing.cfg", io_write);
  new str[256];
  format(str, sizeof(str), "%s", mything);
  fwrite(Tfile, str);
  fclose(Tfile);
  return 1;
}

public LoadThig()
{
  new File:Tfile;
  Tfile = fopen("thing.cfg", io_read);
  return 1;
}



Re: [HELP]serious help requested. - whooper - 16.05.2009

I think he meant mysql.


Re: [HELP]serious help requested. - Ignas1337 - 16.05.2009

as a matter of fact, I did


Re: [HELP]serious help requested. - Ignas1337 - 16.05.2009

if anyone is expirianced with mysql loading/saving in samp, coud you please paste a basic load/save function code pls?


Re: [HELP]serious help requested. - Ignas1337 - 17.05.2009

bumping the post up