Saving problem
#1

Cheers.
Reply
#2

Use Dini, It's much simpler:

Sets the bank to file:
pawn Код:
dini_IntSet("govbank.txt","Bank",govInfo[gGovBank]);
Read the bank from file:
pawn Код:
govInfo[gGovBank] = dini_Int("govbank.txt","Bank");
pawn Код:
public SaveGovBank()
{
  if(!dini_Exists("govbank.txt"))
  {
    dini_Create("govbank.txt");
  }
  dini_IntSet("govbank.txt","Bank",govInfo[gGovBank]);
  return 1;
}
pawn Код:
public LoadGovBank()
{
  if(!dini_Exists("govbank.txt"))
  {
    dini_Create("govbank.txt");
    dini_IntSet("govbank.txt","Bank",govInfo[gGovBank]);
  }
  govInfo[gGovBank] = dini_Int("govbank.txt","Bank");
  return 1;
}
Reply
#3

Wow, that it could be that simple using Dini.

Anyway thank you for your great and fast support Miokie.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)