15.06.2012, 14:30
Hello,
i have found something strange:
Well,
i do like this in script:
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.
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 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.