11.09.2015, 11:36
Hmm, Idk if I'm doing smth wrong, or its not possible to happen with yIni
But however, I wanna save players ips in INI file, i already made everything, but it just saves the first nums of ip ex
"127.0.0.1" it saves "127" only
In LoadUser thing
Heres the code in registering
OnPlayerDisconnect ->
INI file
Idk whats wrong S:
But however, I wanna save players ips in INI file, i already made everything, but it just saves the first nums of ip ex
"127.0.0.1" it saves "127" only
PHP код:
enum pInfo
{
pIP[16]
}
PHP код:
new PlayerInfo[MAX_PLAYERS][pInfo];
PHP код:
INI_String("IP",PlayerInfo[playerid][pIP],16);
PHP код:
new IP[16];
GetPlayerIp(playerid,IP,sizeof(IP));
INI_WriteString(File,"IP",IP);
PHP код:
INI_WriteInt(File,"IP",PlayerInfo[playerid][pIP]);
PHP код:
IP = 52