Započeo uinatsvima_
•30. Nov. 2017.error 047: array sizes do not match, or destination array is too small
1,373
pregleda
5
postova
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
6 / 250 XP
Početnik(0)
3,071
Postovi:
70
Teme:
Pridružio se:Nov. 2016
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
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.
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
433
Postovi:
15
Teme:
Pridružio se:Mar. 2017
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:
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.
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.
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
6 / 250 XP
Početnik(0)
3,071
Postovi:
70
Teme:
Pridružio se:Nov. 2016
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:
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.
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

