destination array is too small
#1

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?
Reply
#2

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);
Reply
#3

Thank you, I need to learn all these different methods. Thanks.
Reply
#4

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
Reply
#5

It means you have 'strtok' defined numerous times in your script. Remove one of the functions.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)