Pawno errors #2 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno errors #2 (
/showthread.php?tid=125840)
Pawno errors #2 -
MarcusX - 05.02.2010
Код:
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.
Re: Pawno errors #2 -
Doppeyy - 05.02.2010
We need to see the code to see whats wrong.
[Doppeyy
Re: Pawno errors #2 -
MarcusX - 05.02.2010
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;
}
Re: Pawno errors #2 -
MarcusX - 06.02.2010
My friend helped me, I just deleted all the shit and it compiled fine, close please.