SA-MP Forums Archive
Pawno Errors, And Plenty Of Them. - 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, And Plenty Of Them. (/showthread.php?tid=75622)



Pawno Errors, And Plenty Of Them. - Marcus Drake - 03.05.2009

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.


Re: Pawno Errors, And Plenty Of Them. - GTA_Rules - 03.05.2009

Upload at pastebin.com please

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


Re: Pawno Errors, And Plenty Of Them. - HB - 03.05.2009

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


Re: Pawno Errors, And Plenty Of Them. - Marcus Drake - 03.05.2009

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

I'm not sure whats wrong though.


Re: Pawno Errors, And Plenty Of Them. - MenaceX^ - 03.05.2009

Post the errors instead..


Re: Pawno Errors, And Plenty Of Them. - HB - 03.05.2009

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.


Re: Pawno Errors, And Plenty Of Them. - Marcus Drake - 03.05.2009

Код:
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)



Re: Pawno Errors, And Plenty Of Them. - HB - 03.05.2009

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);"


Re: Pawno Errors, And Plenty Of Them. - Marcus Drake - 03.05.2009

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


Re: Pawno Errors, And Plenty Of Them. - HB - 03.05.2009

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.