Problem in Dini function
#1

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
Reply
#2

Why you dont use INI its more Good
Reply
#3

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

Meaby
But its verry easy to fix something from INI
Reply
#5

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.
Reply
#6

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
Reply
#7

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?
Reply
#8

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.
Reply
#9

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?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)