help - 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)
+--- Thread: help (
/showthread.php?tid=337770)
help -
sanplayer - 27.04.2012
I get these errors
Код:
C:\Users\Ghost\Desktop\Pawn Studio\pawno\include\dutils.inc(363) : warning 219: local variable "offset" shadows a variable at a preceding level
C:\Users\Ghost\Desktop\Pawn Studio\pawno\include\dutils.inc(364) : warning 219: local variable "result" shadows a variable at a preceding level
C:\Users\Ghost\Desktop\urp2.pwn(14941) : error 021: symbol already defined: "strtok"
C:\Users\Ghost\Desktop\urp2.pwn(14941) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Ghost\Desktop\urp2.pwn(14939) : error 010: invalid function or declaration
C:\Users\Ghost\Desktop\urp2.pwn(14939 -- 14942) : fatal error 107: too many error messages on one line
LineS:
pawn Код:
strtok(const string[], &index)
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
Re: help -
.FuneraL. - 27.04.2012
pawn Код:
C:\Users\Ghost\Desktop\Pawn Studio\pawno\include\dutils.inc(363) : warning 219: local variable "offset" shadows a variable at a preceding level
C:\Users\Ghost\Desktop\Pawn Studio\pawno\include\dutils.inc(364) : warning 219: local variable "result" shadows a variable at a preceding level
Change the name to Variable.
pawn Код:
C:\Users\Ghost\Desktop\urp2.pwn(14941) : error 021: symbol already defined: "strtok"
Remove the stock strtok.
Re: help -
sanplayer - 27.04.2012
So just remove the Stock of strtok?
Re: help -
.FuneraL. - 27.04.2012
Yes, You have already defined the strtok, then remove and try to compile
Re: help -
sanplayer - 27.04.2012
Код:
C:\Users\Ghost\Desktop\usrp3.pwn(15977) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16016) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16023) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16096) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16241) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16271) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16301) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16419) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16604) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16613) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16641) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(16665) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(17812) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18163) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18172) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18241) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18250) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18394) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18432) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18478) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18668) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18733) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18741) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18795) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18834) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ghost\Desktop\usrp3.pwn(18873) : error 047: array sizes do not match, or destination array is too small
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Re: help -
HDFord - 27.04.2012
where have you put this in your script? and explain what it does, fi you dont know what it does find it out and you might learn it someday
Re: help -
sanplayer - 27.04.2012
I removed the stock and all them lines have strtok
Re: help -
ReneG - 27.04.2012
Use zcmd, and sscanf.