PDA

View Full Version : Problem in Dini function


Arieltador
17/02/2015, 06:01 PM
Hello,

I create function for get user details, this is the function:

stock getPlayerName(playerid) {
GetPlayerName(playerid, playerName, sizeof(playerName));
return playerName;
}
stock getPlayerFile(playerid) {
format(tmp, sizeof(tmp), "Users/%s.ini", getPlayerName(playerid));
return tmp;
}
stock getDetails(playerid, detail[]) {
return dini_Get(getPlayerFile(playerid), detailName);
}


But, the function "getDetails" dont return anything when i call to it.
I try to call this way: getDetails(playerid, "ipAddress");
And the function dont return anything.
When i use that: dini_Get(getPlayerFile(playerid), "ipAddress");
The function return Player IP address.
Why?

Thank's :)

arlindi
17/02/2015, 06:04 PM
Why you dont use INI its more Good

Arieltador
17/02/2015, 06:06 PM
Why you dont use INI its more Good

It's will solve my problem?

arlindi
17/02/2015, 06:09 PM
Meaby
But its verry easy to fix something from INI

Arieltador
17/02/2015, 06:11 PM
Meaby
But its verry easy to fix something from INI

Are you can't help me with dini?
Just for change all my Gamemod to INI, It's very hard.

GGRoleplay
17/02/2015, 06:16 PM
Use Y_INI or MySQL, and you saying that it's very hard I changed VX:RP 1, based off Dini to MySQL, which is alot harder than Y_INI look up some tutorials and change it step by step

Arieltador
17/02/2015, 06:23 PM
Use Y_INI or MySQL, and you saying that it's very hard I changed VX:RP 1, based off Dini to MySQL, which is alot harder than Y_INI look up some tutorials and change it step by step

You have good tutorial for INI and download link?

CalvinC
17/02/2015, 06:34 PM
You have good tutorial for INI and download link?

It's made by ******, just use ******.
He made a tutorial about it too, http://forum.sa-mp.com/showthread.php?t=244223.

arlindi
17/02/2015, 06:36 PM
It's made by ******, just use ******.
He made a tutorial about it too, http://forum.sa-mp.com/showthread.php?t=244223.

http://forum.sa-mp.com/showthread.php?t=563838 Can to help mee herE?