ERROR [ Help]
#1

Код:
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(274) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(284) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(293) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(410) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(426) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(537) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(556) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(735) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(751) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(789) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(805) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(844) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(860) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(897) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(950) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(951) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(999) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1000) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1048) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1049) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1097) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1098) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1146) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1147) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1195) : error 047: array sizes do not match, or destination array is too small
C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\Objects.pwn(1196) : 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.
I just compiled this FS
https://sampforum.blast.hk/showthread.php?tid=416138
Reply
#2

Did you notify the creator of that script about those bugs?
They are created because he tries to store a returned string into a string with =

Partial code:
pawn Код:
new tmp[20];
tmp = strtok(params, idx)
If strtok returns a string that isn't exactly 20 characters long, you'll get that warning.
Use strcat or format to store string into another string.
Or process lines of text with sscanf to put them into string variables.
Reply
#3

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
Did you notify the creator of that script about those bugs?
They are created because he tries to store a returned string into a string with =

Partial code:
pawn Код:
new tmp[20];
tmp = strtok(params, idx)
If strtok returns a string that isn't exactly 20 characters long, you'll get that warning.
Use strcat or format to store string into another string.
Or process lines of text with sscanf to put them into string variables.
What shall i do to run this script?
Reply
#4

It might still work as intended, but you'll need to rewrite alot of that code to get it error-free.

I tried this too once (assigning a string to a string variable using = ) and got the same errors.
Since then, I'm using format to store strings in a variable and never got any more trouble.

I can't believe the author released that script with so many errors.

When you release something, it should be error- and warning-free at least.
Bugs might exist as in every script, but warnings/errors upon release?
Did he even compile it himself, and did he perhaps look over the errors?

Strange.


At least you could try it, to see if it even works.
If it works, even with those errors, then you can use it.
Do you even get the amx file when you try to compile it?

If it doesn't:
Either dump it, or rewrite the lines where you get the errors.
Or let the author fix it.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)