[Ajuda] Erros Chatos [Resolvido]
#1

Bem, estou me deparando com estes erros ao tentar compilar:

Quote:

(4182) : error 047: array sizes do not match, or destination array is too small
(6474) : error 047: array sizes do not match, or destination array is too small
(6575) : error 047: array sizes do not match, or destination array is too small
(6764) : error 047: array sizes do not match, or destination array is too small
(6997) : error 047: array sizes do not match, or destination array is too small
(7154) : error 047: array sizes do not match, or destination array is too small
(7299) : error 047: array sizes do not match, or destination array is too small
(7591) : error 047: array sizes do not match, or destination array is too small
(7679) : error 047: array sizes do not match, or destination array is too small
(8139) : error 047: array sizes do not match, or destination array is too small
(17784) : error 025: function heading differs from prototype
(17785) : error 021: symbol already defined: "strtok"
(17795) : error 047: array sizes do not match, or destination array is too small
C(22384) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

13 Errors.

Linhas com erro 047:
Код:
	new idx;
	tmp = strtok(text, idx); //erro aqui (4182)
	if(LStep[playerid] == 1)
Код:
	new x_info[128];
	x_info = strtok(cmdtext, idx); //erro aqui (6474)
	if(!strlen(x_info))
As outras Linhas com erro 047 sгo como a Linha 6474.

Em referкncia ao erro 047 encontrei isso, mas nгo entendi muito bem:
Quote:
Originally Posted by pawn-lang.pdf
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.
Erro 025 e erro 021:
Код:
strtok(string[],&idx,seperator = ' ') //erro aqui (17784) 025
{ //erro aqui (17785) 021
Desculpe mas й que nгo entendi muito bem esses erros, se alguйm puder me ajudar eu agradeзo.
Reply
#2

Tenta mudar ali a 1Є pra

pawn Код:
tmp = strtok(cmdtext, idx);
O resto nem sei '-'
Reply
#3

Quote:
Originally Posted by Guilherme_Canani
Tenta mudar ali a 1Є pra

pawn Код:
tmp = strtok(cmdtext, idx);
O resto nem sei '-'
Nгo, isso gera o 14є Erro
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

EDIT:

Consegui resolver.
Para quem tambйm tiver esses erros basta trovar o seu Dini.inc por um mais atual.

http://solidfiles.com/d/ed175a4c1c8d...940e149551e747
Reply
#4

Quote:
Originally Posted by FrozzenxXx
Посмотреть сообщение
Nгo, isso gera o 14є Erro
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

EDIT:

Consegui resolver.
Para quem tambйm tiver esses erros basta trovar o seu Dini.inc por um mais atual.

http://solidfiles.com/d/ed175a4c1c8d...940e149551e747
Cara vlw tu me salvou a vida! +reputaзгo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)