SA-MP Forums Archive
Missing an Include or Plugin? - 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: Missing an Include or Plugin? (/showthread.php?tid=290434)



Missing an Include or Plugin? - ToPhrESH - 15.10.2011

I edited a script and it use to run fine. Then I deleted all my pawno files becuz i quit pawno but now I decided to come back and I downloaded a new pawno and got the old script i use to run. it had a few errors so i decided to download an ORIGINAL script.

I get these errors:
Code:
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(30) : error 017: undefined symbol "MAX_STRING"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(30) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(246) : error 017: undefined symbol "MAX_STRING"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(246) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(247) : error 017: undefined symbol "MAX_STRING"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(247) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(248) : error 017: undefined symbol "MAX_STRING"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(248) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(250) : error 017: undefined symbol "MAX_STRING"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(250) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(617) : error 017: undefined symbol "MAX_STRING"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(617) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1197) : error 001: expected token: ";", but found "-identifier-"
AM i missing an include or plugin?


Re: Missing an Include or Plugin? - [MWR]Blood - 15.10.2011

pawn Code:
#define MAX_STRING 256



Re: Missing an Include or Plugin? - whitedragon - 15.10.2011

maybe include but try on top(after include a_samp) #define MAX_STRING 256


Re: Missing an Include or Plugin? - ToPhrESH - 15.10.2011

Code:
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1197) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1213) : error 017: undefined symbol "Score"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1214) : error 017: undefined symbol "Score"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1457) : error 017: undefined symbol "udb_encode"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1457) : error 033: array must be indexed (variable "udbName")
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1464) : error 017: undefined symbol "Now"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1481) : error 047: array sizes do not match, or destination array is too small
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1503) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1504) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1505) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1506) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1507) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1519) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(1516) : warning 204: symbol is assigned a value that is never used: "idx"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2712) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2712) : error 033: array must be indexed (variable "tmp")
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2711) : warning 203: symbol is never used: "Index"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2740) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2740) : error 033: array must be indexed (variable "Password")
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2747) : error 017: undefined symbol "udb_hash"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2739) : warning 203: symbol is never used: "index"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2765) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2765) : error 033: array must be indexed (variable "Password")
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2769) : error 017: undefined symbol "udb_hash"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2764) : warning 203: symbol is never used: "index"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2980) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2980) : error 033: array must be indexed (variable "tmp")
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(2980) : warning 203: symbol is never used: "Index"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(3065) : error 017: undefined symbol "strtok"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(3065) : error 033: array must be indexed (variable "tmp")
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(3065) : warning 203: symbol is never used: "Index"
C:\Users\Owner\Desktop\Pawno\gamemodes\new.pwn(3091) : error 017: undefined symbol "strtok"
?? Missing an include maybe?


Re: Missing an Include or Plugin? - MichaelNerd - 15.10.2011

Look at the top of the script.
thi includes should be up there.
Just look for the name on ******.
Like: sscanf.inc etc.


Re: Missing an Include or Plugin? - ToPhrESH - 15.10.2011

Still same errors..


Re: Missing an Include or Plugin? - MichaelNerd - 15.10.2011

Then id suggest to make your own script.
and post the lines of the errors.


Respuesta: Missing an Include or Plugin? - kirk - 15.10.2011

Why dont you go line by line of the error and try to fix it yourself? and if you cant post a part of the code related with the line.

First of all read some documentation related with pawn.

I would like to know from where did you get that gammode.