MySQL help me please.
#1

Hello, I made this code. but when i add the IP insert it doesn't work, but without IP it works.

Код:
stock CreateAccount(playerid, salt[], pass[129])
{
	new query[240], escapedPlayerName[MAX_PLAYER_NAME], IP[16];
	mysql_real_escape_string(GetName2(playerid), escapedPlayerName);
	GetPlayerIp(playerid, IP, sizeof(IP));
	format(query, sizeof(query), "INSERT INTO `users` (name, salt, password, IP) VALUES (\'%s\', \'%s\', \'%s\', \'%s\')",escapedPlayerName,salt,pass,IP);
	mysql_function_query(dbHandle, query, false, "OnAccountCreate", "d", playerid);
}
what is the problem with the IP?
Reply


Messages In This Thread
MySQL help me please. - by PaulDinam - 18.01.2013, 13:07
Re: MySQL help me please. - by AndreT - 18.01.2013, 13:21
Re: MySQL help me please. - by PaulDinam - 18.01.2013, 13:25
Re: MySQL help me please. - by LarzI - 18.01.2013, 13:28
Re: MySQL help me please. - by PaulDinam - 18.01.2013, 13:33
Re: MySQL help me please. - by Roel - 18.01.2013, 13:37
Re: MySQL help me please. - by LarzI - 18.01.2013, 13:51
Re: MySQL help me please. - by PaulDinam - 18.01.2013, 13:54
Re: MySQL help me please. - by LarzI - 18.01.2013, 13:58
Re: MySQL help me please. - by PaulDinam - 18.01.2013, 14:05

Forum Jump:


Users browsing this thread: 6 Guest(s)