SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 27/01/2012, 12:53 AM   #1
Abreezy
Gangsta
 
Abreezy's Avatar
 
Join Date: Jan 2011
Location: Bronx
Posts: 560
Reputation: 42
Default destination array is too small

Im using dialogs to make stuff, and i got this error:

pawn Code:
array sizes do not match, or destination array is too small

pawn Code:
FactionInfo[Total_Faction_Created][fName] = inputtext;

Thats the line with the error, whats the issue?
__________________

(Click the image for link to gamemode release)
| Completely dynamic gamemode, made completely from scratch, MySQL |
| Will script for cash, just send me a PM with information on what you want. |
Abreezy is offline   Reply With Quote
Old 27/01/2012, 01:00 AM   #2
Gh05t_
Big Clucker
 
Gh05t_'s Avatar
 
Join Date: Dec 2011
Posts: 192
Reputation: 140
Default Re: destination array is too small

pawn Code:
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 Code:
new string[64];
strcat(FactionInfo[Total_Faction_Created][fName], inputtext);
Gh05t_ is offline   Reply With Quote
Old 27/01/2012, 01:06 AM   #3
Abreezy
Gangsta
 
Abreezy's Avatar
 
Join Date: Jan 2011
Location: Bronx
Posts: 560
Reputation: 42
Default Re: destination array is too small

Thank you, I need to learn all these different methods. Thanks.
__________________

(Click the image for link to gamemode release)
| Completely dynamic gamemode, made completely from scratch, MySQL |
| Will script for cash, just send me a PM with information on what you want. |
Abreezy is offline   Reply With Quote
Old 10/06/2014, 02:39 PM   #4
Haqdost
Little Clucker
 
Join Date: Jun 2014
Location: Kabul,Afghanistan
Posts: 12
Reputation: 0
Default Re: destination array is too small

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
Haqdost is offline   Reply With Quote
Old 10/06/2014, 03:05 PM   #5
DrakeX
Banned
 
Join Date: Dec 2011
Posts: 73
Reputation: 49
Default Re: destination array is too small

It means you have 'strtok' defined numerous times in your script. Remove one of the functions.
DrakeX is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(dFile) error 047: array sizes do not match, or destination array is too small Jack_Leslie Scripting Help 0 06/09/2011 02:20 AM
(dFile) error 047: array sizes do not match, or destination array is too small Jack_Leslie Scripting Help 8 01/09/2011 06:32 AM
[SOLVED]error 047: array sizes do not match, or destination array is too small help! Help Archive 7 18/06/2011 09:09 PM
[Sloved]error 047: array sizes do not match, or destination array is too small CoaPsyFactor Help Archive 1 09/06/2011 09:27 PM


All times are GMT. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.