destination array is too small - 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: destination array is too small (
/showthread.php?tid=313678)
destination array is too small -
Abreezy - 26.01.2012
Im using dialogs to make stuff, and i got this error:
pawn Код:
array sizes do not match, or destination array is too small
pawn Код:
FactionInfo[Total_Faction_Created][fName] = inputtext;
Thats the line with the error, whats the issue?
Re: destination array is too small -
Gh05t_ - 27.01.2012
pawn Код:
new string[64];
format(string, sizeof(string), "%s", inputtext);
format(FactionInfo[Total_Faction_Created][fName], 64, string);
Though I also do believe you may use strcat.
pawn Код:
new string[64];
strcat(FactionInfo[Total_Faction_Created][fName], inputtext);
Re: destination array is too small -
Abreezy - 27.01.2012
Thank you, I need to learn all these different methods. Thanks.
Re: destination array is too small -
Haqdost - 10.06.2014
I Also Has Problem Error Message error 021: symbol already defined: "strtok" Here is Pawn Code
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
Plz anyone Help
Re: destination array is too small -
DrakeX - 10.06.2014
It means you have 'strtok' defined numerous times in your script. Remove one of the functions.