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


Messages In This Thread
Problem in Dini function - by Arieltador - 17.02.2015, 18:01
Re: Problem in Dini function - by arlindi - 17.02.2015, 18:04
Re: Problem in Dini function - by Arieltador - 17.02.2015, 18:06
Re: Problem in Dini function - by arlindi - 17.02.2015, 18:09
Re: Problem in Dini function - by Arieltador - 17.02.2015, 18:11
Re: Problem in Dini function - by GGRoleplay - 17.02.2015, 18:16
Re: Problem in Dini function - by Arieltador - 17.02.2015, 18:23
Re: Problem in Dini function - by CalvinC - 17.02.2015, 18:34
Re: Problem in Dini function - by arlindi - 17.02.2015, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)