Problem with registred IP saving. :)
#1

Код:
    new plrIP[16];
    GetPlayerIp(playerid,plrIP, sizeof(plrIP));
    rInfo[playerid][rIP] = plrIP;
Код:
 error 006: must be assigned to an array
i want to make when player making accaount, to save in .ini file registring ip
Reply
#2

Create new enums:

pawn Код:
enum iInfo
{
    IP
}
new IpInfo[MAX_PLAYERS][iInfo];
Then save his IP:

pawn Код:
new IPP[20];
GetPlayerIp(playerid, IPP, sizeof(IPP));
IpInfo[playerid][IP] = IP;
Save and Load him like a file. Put under LoadUser_%s, under OnPlayerDisconnect, etc.
Reply
#3

Код:
error 006: must be assigned to an array
Код:
IpInfo[playerid][IP] = IP;
Reply
#4

pawn Код:
GetPlayerIp(playerid, rInfo[playerid][rIP] , 16);
Be aware: GetPlayerIp does not work @ OnPlayerDisconnect. It will return Invalid_ip
Reply
#5

This is on when player registred
Reply
#6

Good!
Reply
#7

thanks bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)