strmid <= Bug (?)
#1

Well.. i have problem with that.

strmid(PData[playerid][LLubaValjastaja], Field, 0, strlen(Field), 255);

If database have LLubaValjastaja: Martin_Sulov then strmid read out and set it: artin_Sulov (In-Game). While logging out and will be set to: artin_Sulov. (I see at database)

When "None" => "one". (I see at database)

It's really annoying.

How solve this problem? :$
Reply
#2

I tried too strcat, but ingame shows "sTv" when "Martin_Sulov".
Reply
#3

Yes.

Is that about:
Код:
#define strcpy(%0,%1,%2) \
    strcat((%0[0] = '\0', %0), %1, %2)
?

I tried this method and return to..
Reply
#4

I guess the string size is not enough.
Make sure the string size has at least MAX_PLAYER_NAME.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)