SA-MP Forums Archive
help some stupid warnings - 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: help some stupid warnings (/showthread.php?tid=78473)



help some stupid warnings - trm - 20.05.2009

C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(401) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(426) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(514) : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection")
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(545) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(561) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(613) : warning 235: public function lacks forward declaration (symbol "GameModeExitFunc")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Warnings.



Re: help some stupid warnings - Weirdosport - 20.05.2009

They're not stupid warnings, they're telling you where you've been stupid..

Loose indentation means your indentation is either non existent or ambiguous (or wrong), and the warning 235 is where you are either mispelling function names, or have forgotten to use: forward functionname()


Re: help some stupid warnings - luckie12 - 20.05.2009

put this ontop of youre script:

pawn Код:
forward GameModeExitFunc()
//and
forward SetupPlayerForClassSelection()



Re: help some stupid warnings - trm - 20.05.2009

Quote:
Originally Posted by luckie12
put this ontop of youre script:

pawn Код:
forward GameModeExitFunc()
//and
forward SetupPlayerForClassSelection()
oke 5 warnings now

C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(42 : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(453) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(541) : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection")
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(572) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Download modes\1\SF 4Gang TDM\gamemodes\SF4GDM.pwn(58 : warning 217: loose indentation



there is somthing wrong whit playerclass


Re: help some stupid warnings - Jakku - 20.05.2009

Sometimes Loose Indentations depends from some thing is in wrong place (Move example command with space)


Re: help some stupid warnings - Oxside - 20.05.2009

Quote:
Originally Posted by Weirdosport
They're not stupid warnings, they're telling you where you've been stupid..

Loose indentation means your indentation is either non existent or ambiguous (or wrong), and the warning 235 is where you are either mispelling function names, or have forgotten to use: forward functionname()
Dont call ppl stuptid

Код:
forward SetupPlayerForClassSelection()
Must be:
Код:
forward SetupPlayerForClassSelection(playerid)