Pawno errors #2
#1

Код:
D:\flawless\epicroleplay2(1).pwn(2829) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(2869) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(3211) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(3328) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(8824) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(8826) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\flawless\epicroleplay2(1).pwn(8858) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(11183) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(11185) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\flawless\epicroleplay2(1).pwn(11204) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(12758) : error 047: array sizes do not match, or destination array is too small
D:\flawless\epicroleplay2(1).pwn(14854) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(14861) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(14872) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(14927) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(14954) : warning 217: loose indentation
D:\flawless\epicroleplay2(1).pwn(16392) : error 047: array sizes do not match, or destination array is too small
D:\flawless\epicroleplay2(1).pwn(16559) : error 047: array sizes do not match, or destination array is too small
D:\flawless\epicroleplay2(1).pwn(16955) : error 047: array sizes do not match, or destination array is too small
D:\flawless\epicroleplay2(1).pwn(17710) : error 047: array sizes do not match, or destination array is too small
D:\flawless\epicroleplay2(1).pwn(22163) : error 025: function heading differs from prototype
D:\flawless\epicroleplay2(1).pwn(22164) : error 021: symbol already defined: "strtok"
D:\flawless\epicroleplay2(1).pwn(22174) : error 047: array sizes do not match, or destination array is too small
D:\flawless\epicroleplay2(1).pwn(22265) : error 021: symbol already defined: "HexToInt"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
Could anyone help out I'm willing to help out with something they need websites etc.
Reply
#2

We need to see the code to see whats wrong.

[Doppeyy
Reply
#3

Line 16392
Код:
x_info = strtok(cmdtext, idx);
Line 16559
Код:
x_info = strtok(cmdtext, idx);
Line 16955
Код:
x_info = strtok(cmdtext, idx);
Line 17710
Код:
x_info = strtok(cmdtext, idx);
Error 22163 & 22164 & 22174
Код:
strtok(string[],&idx,seperator = ' ') // line 22163
	{ // line 22164
	new ret[128], i = 0, len = strlen(string);
	while(string[idx] == seperator && idx < len) idx++;
	while(string[idx] != seperator && idx < len)
	{
	  ret[i] = string[idx];
	  i++;
		idx++;
	}
	while(string[idx] == seperator && idx < len) idx++;
	return ret; //line 22174
}
Line 22265
Код:
stock HexToInt(string[]) { //line 22265
 if (string[0]==0) return 0;
 new i;
 new cur=1;
 new res=0;
 for (i=strlen(string);i>0;i--) {
  if (string[i-1]<58) res=res+cur*(string[i-1]-48); else res=res+cur*(string[i-1]-65+10);
  cur=cur*16;
 }
 return res;
}
Reply
#4

My friend helped me, I just deleted all the shit and it compiled fine, close please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)