Strings- Error
#1

Hey , please check the following example:
pawn Код:
new string[4][128];
format(string[0], sizeof(string[0]), "BlaBla%i", int);
when I do this I get an error
so I have to change the sizeofstring(string[0]) to 128 to get rid of the error
pawn Код:
new string[4][128];
format(string[0], 128, "BlaBla%i", int);
this works fine
Why?
Reply


Messages In This Thread
Strings- Error - by Sarra - 14.08.2014, 18:15
Re: Strings- Error - by CutX - 14.08.2014, 18:24
Re: Strings- Error - by Jefff - 14.08.2014, 20:18
Re: Strings- Error - by Sarra - 16.08.2014, 09:47

Forum Jump:


Users browsing this thread: 1 Guest(s)