Strins - 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: Strins (
/showthread.php?tid=282043)
Strins -
=WoR=Varth - 09.09.2011
pawn Код:
public OnGameModeInit()
{
new string[2][128];
strcat(string[0],"This is ",128);
strcat(string[1],"me you",128);
strins(string[0],string[1],strlen(string[0]),2);
print(string[0]);
return 1;
}
Код:
[17:39:01] This is me you
It should be "This is me" as I put 2 in the max input string (me).
Eh?
Don't say "use strcat instead strins".
Re: Strins -
Davz*|*Criss - 09.09.2011
What's wrong?
And you're creating 2 strings? If yes, try it this way:
Re: Strins -
=WoR=Varth - 09.09.2011
Quote:
Originally Posted by Davz*|*Criss
What's wrong?
And you're creating 2 strings? If yes, try it this way:
|
I suggest you to learn this:
https://sampwiki.blast.hk/wiki/Strins
Re: Strins -
MadeMan - 09.09.2011
Looks like the maxlength parameter is ignored
Might be a bug.
Re: Strins -
=WoR=Varth - 09.09.2011
Quote:
Originally Posted by MadeMan
Looks like the maxlength parameter is ignored
Might be a bug.
|
Well, then this topic should be moved to bug section.
Re: Strins -
=WoR=Varth - 13.09.2011
Bump this as I'm still curious.