Shorter Dini functions help
#1

Hello, Can someone tell me how to change this:

Code:
dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);
TO
Code:
  		dini_IntSet(file, "Score",pScore);
Reply
#2

It's practically the exact same thing.

But you could do something like this (referring to your code up there) - which I think is just useless:
pawn Code:
#define SCORE(%0) PlayerInfo[%0][pScore]

dini_IntSet(file, "Score", SCORE(playerid));
Reply
#3

Why would you want that? A single variable would cause a clash between all players. Also, why are you using dini? It's extremely outdated.
Reply
#4

Quote:
Originally Posted by Crayder
View Post
Why would you want that? A single variable would cause a clash between all players. Also, why are you using dini? It's extremely outdated.
Everyone told me this, And i feel stupid when i read it, But, I cannot find Dudb thread to know how to make register/login system, All of them are dini..

Give me a link please.
Reply
#5

Quote:
Originally Posted by aCloudy
View Post
Everyone told me this, And i feel stupid when i read it, But, I cannot find Dudb thread to know how to make register/login system, All of them are dini..

Give me a link please.
Why do you insist on using Dudb? Why not just look at a YINI login/register tutorial on the tutorials section? Just do a search, "YINI login register".
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)