21.11.2015, 11:58
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
Login callback:
When i save:
When player register
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] }
Код:
cache_get_field_content(0, "pEmail", PlayerInfo[playerid][pEmail], connects, strlen(PlayerInfo[playerid][pEmail]));
Код:
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);
Код:
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);