Reading from a file using Dini.
#1

Hello all.

First of all, I just followed a tutorial to set up a /login and /register system.

For example dini_IntSet(file,"AdminLevel", 0); blahblah

I want to make a command for Players with the AdminLevel=3 or higher. I'm using a script I have made from scratch for learning experiences.

How would I make the command Check my character file's AdminLevel to use the command?


Thanks

I have this so far but I'm completly stuck.

if(strcmp(cmd, "/gmx", true) == 0)
{
dini_Get(file, "AdminLevel");

}
Reply
#2

pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)
{
  if (dini_Int(file, "AdminLevel") >= 3)
  {
   
  }
  return 1;
}
Reply
#3

Quote:
Originally Posted by MadeMan
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)
{
  if (dini_Int(file, "AdminLevel") >= 3)
  {
   
  }
  return 1;
}
*bump*

i have to say this I LOVE YOU that wrks good!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)