SA-MP Forums Archive
Problem in Dini function - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem in Dini function (/showthread.php?tid=563842)



Problem in Dini function - Arieltador - 17.02.2015

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


Re: Problem in Dini function - arlindi - 17.02.2015

Why you dont use INI its more Good


Re: Problem in Dini function - Arieltador - 17.02.2015

Quote:
Originally Posted by arlindi
Посмотреть сообщение
Why you dont use INI its more Good
It's will solve my problem?


Re: Problem in Dini function - arlindi - 17.02.2015

Meaby
But its verry easy to fix something from INI


Re: Problem in Dini function - Arieltador - 17.02.2015

Quote:
Originally Posted by arlindi
Посмотреть сообщение
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.


Re: Problem in Dini function - GGRoleplay - 17.02.2015

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


Re: Problem in Dini function - Arieltador - 17.02.2015

Quote:
Originally Posted by GGRoleplay
Посмотреть сообщение
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?


Re: Problem in Dini function - CalvinC - 17.02.2015

Quote:
Originally Posted by Arieltador
Посмотреть сообщение
You have good tutorial for INI and download link?
It's made by ******, just use ******.
He made a tutorial about it too, https://sampforum.blast.hk/showthread.php?tid=244223.


Re: Problem in Dini function - arlindi - 17.02.2015

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
It's made by ******, just use ******.
He made a tutorial about it too, https://sampforum.blast.hk/showthread.php?tid=244223.
https://sampforum.blast.hk/showthread.php?tid=563838 Can to help mee herE?