SA-MP Forums Archive
MySQL BUG HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL BUG HELP (/showthread.php?tid=293614)



MySQL BUG HELP - sony112502 - 29.10.2011

My MYSQL system is to use sampmysql

But...

The first word of text data is always one less word

Normal:abcdefghij@xxxx.xxx


Then log in again

Become

bcdefghij@xxxx.xxx


Re: MySQL BUG HELP - Tigerkiller - 29.10.2011

show your load and save think from this


Re: MySQL BUG HELP - sony112502 - 29.10.2011

Save:

MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Email", PlayerInfo[playerid][pEmail]);


load:

if (rcnt == 11 PlayerInfo[playerid][pEmail] = strmid(PlayerInfo[playerid][pEmail], Field, 0, strlen(Field), 255);


Re: MySQL BUG HELP - Tigerkiller - 29.10.2011

hmm

check you enum i think the value are to low

change pEmail to pEmail[30] in your enum
and give it a try


Re: MySQL BUG HELP - sony112502 - 29.10.2011

"the value are to low"

I think it would disappear behind the words.

strmid(dest[],const source[],start,end,maxlength=sizeof dest)

Will be the beginning of the problem?