mysql question
#5

sorry for double post but maybe the prob is here:

on disconnect i want to save the players ip in the specific account field.
But the field where the ip is supposed to be savved stays empty or it saves the ip 255.255.255.255. (wrong IP)
So what is wrong with this part of code:

pawn Код:
new query[128], pname[24], IPs[16];
        GetPlayerName(playerid, pname, 24);
        GetPlayerIp(playerid,IPs,16);
        format(query, sizeof(query), "UPDATE accounts SET IP='%s' WHERE name='%s'",IPs,pname);
        mysql_query(query);
Reply


Messages In This Thread
mysql question - by PawnoQ - 30.11.2011, 17:35
Re: mysql question - by MP2 - 30.11.2011, 17:41
Re: mysql question - by [Diablo] - 30.11.2011, 17:46
Re: mysql question - by PawnoQ - 30.11.2011, 17:52
Re: mysql question - by PawnoQ - 30.11.2011, 18:15
Re: mysql question - by MP2 - 30.11.2011, 18:40
Re: mysql question - by PawnoQ - 30.11.2011, 18:51
Re: mysql question - by PawnoQ - 30.11.2011, 19:56

Forum Jump:


Users browsing this thread: 3 Guest(s)