Mysql mail problem
#1

Hi,
When i save the Mail,in the database the last letter is remove

Problem:
I enter in the server,and exit
In database -1 caracter

Код:
enum pInfo
{
pEmail[64]
}
Login callback:
Код:
cache_get_field_content(0, "pEmail", PlayerInfo[playerid][pEmail], connects, strlen(PlayerInfo[playerid][pEmail]));
When i save:
Код:
mysql_format(connects, str,BIG_SIZE,"UPDATE `accounts` SET `pPhone` = '%s',`pTut` = '%d',`pNumbercar` = '%s',`pIpReg` = '%s',`family` = '%d',`pAvig` = '%d',`podarok` = '%d',`EmailPotverd` = '%d',`pEmail` = '%s' WHERE `Name` = '%s'",
		PlayerInfo[playerid][pPhone],PlayerInfo[playerid][pTut],
		PlayerInfo[playerid][pNumbercar],PlayerInfo[playerid][pIpReg],
		player_family[playerid],PlayerInfo[playerid][pAvig],PlayerInfo[playerid][podarok],PlayerInfo[playerid][EmailPotverd],PlayerInfo[playerid][pEmail],PlayerInfo[playerid][pNames]);
		mysql_tquery(connects, str);
When player register
Код:
mysql_format(connects, stringer, MAX_SQL, "UPDATE `accounts` SET `pEmail` = '%e' WHERE `Name` = '%s'",inputtext,PlayerInfo[playerid][pNames]);
			mysql_tquery(connects, stringer);
			strmid(PlayerInfo[playerid][pEmail], inputtext, 0, strlen(inputtext), 64);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)