Something Strange.
#1

Hello,

i have found something strange:

Well,

i do like this in script:

pawn Код:
new IP[30];
GetPlayerIp(playerid, IP, 30);

format(MySql_Query,sizeof(MySql_Query),"UPDATE `playerdata` SET playerIP ='%s',jailed='%d',jailtime='%d',accountlocked='%d',money='%d',score='%d',robrank='%d',raperank='%d',arrestrank='%d',swatranks='%d',copranks='%d',pvtlaw='%d',armyranks='%d',tazeranks='%d',hitmanrank='%d',takeddownrank='%d' WHERE name='%s'",
    IP, Jailed[playerid],JailTime[playerid],AccountLocked[playerid],GetPlayerMoney(playerid),GetPlayerScore(playerid),robberrank[playerid],raperrank[playerid],arrestranks[playerid],swatranks[playerid],copranks[playerid],pvtlaw[playerid],
    armyranks[playerid],tazerank[playerid],hitmanranks[playerid],takesdownranks[playerid],PlayerName(playerid));
    mysql_query(MySql_Query);
in the OnPlayerDisconnect(playerid, reason)

in mysql db table it looks like this:

http://imageshack.us/photo/my-images...aptureftj.png/



the ip writes 255.255.255.255 and my ip isnt like that.
Reply
#2

GetPlayerIp at OnPlayerDisconnect returns 255.255.255.255. Store it in database when the player log in.
Reply
#3

Thanks so much for this information. never known about it

+Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)