03.03.2016, 18:47
#Threshold, I have fixed it in a other way, the cmd looks now like this:
I have reffered GetPlayerIp(); to PlayerInfo[][pIP] whenever they register.
----
But still I'd like to know how to fix the bug I had as I have other cmds which uses INI_ParseFile and faces the same bug.
We possibly could discuss this through PMs or skype if you want.
PHP Code:
new user[50];
if(sscanf(params, "s[25]s[50]", option, user)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /getip [playername]");
format(string, sizeof string, "/Users/%s.txt", user);
if(!fexist(string)) return SendClientMessage(playerid, COLOR_RED, "Error: The player has not been found in our database!");
format(string, sizeof string, "The IP of '%s' is: %s", user, PlayerInfo[playerid][pIP]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
----
But still I'd like to know how to fix the bug I had as I have other cmds which uses INI_ParseFile and faces the same bug.
We possibly could discuss this through PMs or skype if you want.

