strmid <= Bug (?) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: strmid <= Bug (?) (
/showthread.php?tid=252943)
strmid <= Bug (?) -
Typhome - 03.05.2011
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? :$
Re: strmid <= Bug (?) -
Typhome - 03.05.2011
I tried too strcat, but ingame shows "
sTv" when "
Martin_Sulov".
Re: strmid <= Bug (?) -
Typhome - 03.05.2011
Yes.
Is that about
:
Код:
#define strcpy(%0,%1,%2) \
strcat((%0[0] = '\0', %0), %1, %2)
?
I tried this method and return to..
Re: strmid <= Bug (?) -
leong124 - 04.05.2011
I guess the string size is not enough.
Make sure the string size has at least MAX_PLAYER_NAME.