Pawno Errors, And Plenty Of Them.
#1

Hi, This is the first time I've attempted to script, I've added a few things, and they all went OK until I added LSPD/SFPD/LVPD Gates,

I just want to have someone double check my script to make sure it is fine, because I can't see where the errors are coming from.

Many Thanks.

http://rapidshare.com/files/228572342/gf.pwn.html

Thats the download link for it, When you've fixed it could you re-upload it for me?

Thanks again.
Reply
#2

Upload at pastebin.com please

EDIT: I downloaded it only one error, cannot read from file balblala. Please give us the include + errors (PASTEBIN)
Reply
#3

You probably need an include. Just copy the name of it and search.
Reply
#4

No, i have the includes necisary, Morphinc and Utils.

I'm not sure whats wrong though.
Reply
#5

Post the errors instead..
Reply
#6

Quote:
Originally Posted by MenaceX^
Post the errors instead..
+1

Give the errors and we can see what you're doing wrong. If the error is something like couldn't read from "blabla.inc" you missed an include, maybe you included the wrong name.
Reply
#7

Код:
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(6977) : warning 235: public function lacks forward declaration (symbol "SaveAccounts")
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(6995) : error 021: symbol already defined: "CreateObject"
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8146) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8148) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8153) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8155) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8160) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8162) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8167) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8169) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8174) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8176) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8181) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8183) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8188) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8190) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8195) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8197) : error 010: invalid function or declaration
Here's the example area of "error"
Код:
if(strcmp(cmd, "/closegatels", true) == 0)
Reply
#8

Quote:
Originally Posted by Marcus Drake
Код:
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(6977) : warning 235: public function lacks forward declaration (symbol "SaveAccounts")
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(6995) : error 021: symbol already defined: "CreateObject"
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8146) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8148) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8153) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8155) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8160) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8162) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8167) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8169) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8174) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8176) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8181) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8183) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8188) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8190) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8195) : error 010: invalid function or declaration
C:\Program Files (x86)\GTA SA\gamemodes\gf.pwn(8197) : error 010: invalid function or declaration
Here's the example area of "error"
Код:
if(strcmp(cmd, "/closegatels", true) == 0)
It are multiple lines, I think it has to do with the SaveAccounts function which is not forwarded. Go to the SaveAccounts function and look which parameters it has. I guess that it only has (playerid). So then you have to forward it using "forward SaveAccounts(playerid);"
Reply
#9

Ok, Thats sorted the SaveAccounts bit out, what about the CreateObject, and the invalid function or declaration bit?
Reply
#10

Quote:
Originally Posted by Marcus Drake
Ok, Thats sorted the SaveAccounts bit out, what about the CreateObject, and the invalid function or declaration bit?
I've never seen such an error with CreateObject. Probably you didn't use the function properly, I'd suggest you to look at it again. About the invalid function errors, could you give me more info? Or give me one of the lines relating it. If it has something to do with the strcmp command line, I pass. I'm no expert in that.
Reply


Forum Jump:


Users browsing this thread: