error 047: array sizes do not match, or destination array is too small

Započeo uinatsvima_
30. Nov. 2017.
1,326
pregleda
5
postova
GamerOfTheYT
5
OG Legend
30. Nov. 2017.
Skripta koju koristim: Perfect Gaming by Terzic
Detaljan opis problema: Napravio sam komandu /avozilo ali mi baca error na obe linije ovaj error sto je u naslovu
Dio skripte:Avozilo
Neke slike/video za lakse dobivanje pomoci(neobavezno): 1 Linija
https://imgur.com/a/hUzuo
2 Linija gde baca error
https://imgur.com/a/uXW09
EDIT: Evo error
D:\Download\samp037_svr_R2-1-1_win32\gamemodes\PGRPG.pwn(29017) : error 047: array sizes do not match, or destination array is too small
D:\Download\samp037_svr_R2-1-1_win32\gamemodes\PGRPG.pwn(29021) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

2 Errors.
Faris_Farkias
6
Godfather
🔥32
30. Nov. 2017.
De mi samo postavi i tu komandu /amotor
Bolex_
4
Made Man
30. Nov. 2017.
Ove dvije komande nemaju veze se brojem linija koje su prikazane, ili možza griješim ?

Ali ovo je primjer kako da riješiš problem:

Quote
Error 047 - array sizes do not match, or destination array is too small:

For array assignment, the arrays on the left and the right side of the assignment operator must have the same number of dimensions.
In addition:
for multi-dimensional arrays, both arrays must have the same size;
for single arrays with a single dimension, the array on the left side of the assignment operator must have a size that is equal or bigger than the one on the right side.
When passing arrays to a function argument, these rules also hold for the array that is passed to the function (in the function call) versus the array declared in the function definition. When a function returns an array, all return statements must specify an array with the same size and dimensions.
GamerOfTheYT
5
OG Legend
30. Nov. 2017.
Bolex_ wrote on November 30, 2017, 4:50 pm:
Ove dvije komande nemaju veze se brojem linija koje su prikazane, ili možza griješim ?

Ali ovo je primjer kako da riješiš problem:

Quote
Error 047 - array sizes do not match, or destination array is too small:

For array assignment, the arrays on the left and the right side of the assignment operator must have the same number of dimensions.
In addition:
for multi-dimensional arrays, both arrays must have the same size;
for single arrays with a single dimension, the array on the left side of the assignment operator must have a size that is equal or bigger than the one on the right side.
When passing arrays to a function argument, these rules also hold for the array that is passed to the function (in the function call) versus the array declared in the function definition. When a function returns an array, all return statements must specify an array with the same size and dimensions.

Hvala @Bolex_ resio sam uz pomocu ovog citata 🙂

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha