SA-MP Forums Archive
How to forward funcyion? - 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: How to forward funcyion? (/showthread.php?tid=67376)



How to forward funcyion? - arachimi - 01.03.2009

From this topic http://forum.sa-mp.com/index.php?topic=25481.0



How could I forward function?



Please help me sir.


Re: How to forward funcyion? - JaYmE - 01.03.2009

if its that script just add #include <a_samp> at the top

any other functions just add

pawn Код:
forward FunctionName(what, ever, in, here);
i carnt believe i just posted the answer to this ¬¬

next time use https://sampwiki.blast.hk/wiki/Main_Page


Re: How to forward funcyion? - arachimi - 01.03.2009

Код:
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1321) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectedMenuRow")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1357) : warning 235: public function lacks forward declaration (symbol "Abastecer2")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1380) : warning 235: public function lacks forward declaration (symbol "SemComb")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1398) : warning 235: public function lacks forward declaration (symbol "Bugando")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1426) : warning 235: public function lacks forward declaration (symbol "HackerSpawn")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1430) : warning 235: public function lacks forward declaration (symbol "ContaHackeada")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1439) : warning 235: public function lacks forward declaration (symbol "Posto")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1460) : warning 235: public function lacks forward declaration (symbol "Profissoes")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(2224) : warning 235: public function lacks forward declaration (symbol "CaLixo")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(2263) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(2483) : warning 235: public function lacks forward declaration (symbol "OnPlayerDisconnect")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(2637) : warning 235: public function lacks forward declaration (symbol "OnPlayerDeath")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(3099) : warning 235: public function lacks forward declaration (symbol "OnPlayerSpawn")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(3598) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterCheckpoint")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(5145) : warning 235: public function lacks forward declaration (symbol "OnPlayerStateChange")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(5667) : warning 235: public function lacks forward declaration (symbol "OnPlayerExitVehicle")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(5758) : warning 235: public function lacks forward declaration (symbol "OnPlayerRequestClass")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(7286) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(8059) : error 017: undefined symbol "kick"
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(8099) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(8665) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(10438) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(18367) : warning 235: public function lacks forward declaration (symbol "OnPlayerText")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(18604) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterRaceCheckpoint")
Pawn compiler 3.2.3664      Copyright © 1997-2006, ITB CompuPhase
How could I do


Re: How to forward funcyion? - Nimphious - 01.03.2009

Do the same thing jay said for all of them.


Re: How to forward funcyion? - arachimi - 01.03.2009

What mean unreachable.


Re: How to forward funcyion? - Rks25 - 01.03.2009

Show those lines.

Mostly it is something like: You returned, and after that putted code.


Re: How to forward funcyion? - Marcel - 01.03.2009

Quote:
Originally Posted by arachimi
Код:
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1321) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectedMenuRow")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1357) : warning 235: public function lacks forward declaration (symbol "Abastecer2")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1380) : warning 235: public function lacks forward declaration (symbol "SemComb")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1398) : warning 235: public function lacks forward declaration (symbol "Bugando")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1426) : warning 235: public function lacks forward declaration (symbol "HackerSpawn")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1430) : warning 235: public function lacks forward declaration (symbol "ContaHackeada")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1439) : warning 235: public function lacks forward declaration (symbol "Posto")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(1460) : warning 235: public function lacks forward declaration (symbol "Profissoes")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(2224) : warning 235: public function lacks forward declaration (symbol "CaLixo")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(2263) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(2483) : warning 235: public function lacks forward declaration (symbol "OnPlayerDisconnect")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(2637) : warning 235: public function lacks forward declaration (symbol "OnPlayerDeath")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(3099) : warning 235: public function lacks forward declaration (symbol "OnPlayerSpawn")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(3598) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterCheckpoint")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(5145) : warning 235: public function lacks forward declaration (symbol "OnPlayerStateChange")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(5667) : warning 235: public function lacks forward declaration (symbol "OnPlayerExitVehicle")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(5758) : warning 235: public function lacks forward declaration (symbol "OnPlayerRequestClass")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(7286) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(8059) : error 017: undefined symbol "kick"
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(8099) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(8665) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(10438) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(18367) : warning 235: public function lacks forward declaration (symbol "OnPlayerText")
C:\Documents and Settings\Administrador\Escritorio\Todo\SAMPS2.2\gamemodes\bayside.pwn(18604) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterRaceCheckpoint")
Pawn compiler 3.2.3664     Copyright © 1997-2006, ITB CompuPhase
How could I do
#include <a_samp>


Re: How to forward funcyion? - Rks25 - 01.03.2009

But that will not solve all...
Update to new server pack, with new includes.