SA-MP Forums Archive
Can somebody fix this - 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: Can somebody fix this (/showthread.php?tid=473174)



Can somebody fix this - lulo356 - 01.11.2013

Quote:

C:\Users\Davey\Desktop\Fasgang.pwn(356) : warning 217: loose indentation
C:\Users\Davey\Desktop\Fasgang.pwn(865) : error 010: invalid function or declaration
C:\Users\Davey\Desktop\Fasgang.pwn(867) : error 010: invalid function or declaration
C:\Users\Davey\Desktop\Fasgang.pwn(869) : error 010: invalid function or declaration
C:\Users\Davey\Desktop\Fasgang.pwn(871) : error 010: invalid function or declaration
C:\Users\Davey\Desktop\Fasgang.pwn(873) : error 010: invalid function or declaration
C:\Users\Davey\Desktop\Fasgang.pwn(875) : error 010: invalid function or declaration
C:\Users\Davey\Desktop\Fasgang.pwn(891) : warning 217: loose indentation
C:\Users\Davey\Desktop\Fasgang.pwn(896) : warning 217: loose indentation
C:\Users\Davey\Desktop\Fasgang.pwn(897) : warning 217: loose indentation
C:\Users\Davey\Desktop\Fasgang.pwn(899) : warning 217: loose indentation
C:\Users\Davey\Desktop\Fasgang.pwn(941) : warning 217: loose indentation
C:\Users\Davey\Desktop\Fasgang.pwn(985) : warning 217: loose indentation
C:\Users\Davey\Desktop\Fasgang.pwn(1212) : warning 202: number of arguments does not match definition
C:\Users\Davey\Desktop\Fasgang.pwn(1782) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Davey\Desktop\Fasgang.pwn(4247) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Davey\Desktop\Fasgang.pwn(4349) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Davey\Desktop\Fasgang.pwn(4365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Davey\Desktop\Fasgang.pwn(4379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Davey\Desktop\Fasgang.pwn(5228 ) : warning 217: loose indentation
C:\Users\Davey\Desktop\Fasgang.pwn(5232) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Title says enough ^^


Re: Can somebody fix this - Tagathron - 01.11.2013

How about some code?


Re: Can somebody fix this - Konstantinos - 01.11.2013

loose indentation: https://sampforum.blast.hk/showthread.php?tid=256961

string was declared as global and as local at the same time, change the string to another name to the lines it gives (and the parts is used as well).

OnPlayerPrivmsg callback was removed, you can forward it above it to get rid of the warning but it will NOT be called when a player recieves a PM.

About invalid function or declaration, post the code.

We cannot read your mind..


Re: Can somebody fix this - lulo356 - 01.11.2013

Solved