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
|
https://sampforum.blast.hk/showthread.php?tid=563838 Can to help mee herE?