[HELP]serious help requested.
#1

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

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;
}
Reply
#3

I think he meant mysql.
Reply
#4

as a matter of fact, I did
Reply
#5

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

bumping the post up
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)