17.02.2015, 18:01
Hello,
I create function for get user details, this is the function:
But, the function "getDetails" dont return anything when i call to it.
I try to call this way:
And the function dont return anything.
When i use that:
The function return Player IP address.
Why?
Thank's
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); }
I try to call this way:
Код:
getDetails(playerid, "ipAddress");
When i use that:
Код:
dini_Get(getPlayerFile(playerid), "ipAddress");
Why?
Thank's