How to forward funcyion?
#1

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



How could I forward function?



Please help me sir.
Reply
#2

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
Reply
#3

Код:
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
Reply
#4

Do the same thing jay said for all of them.
Reply
#5

What mean unreachable.
Reply
#6

Show those lines.

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

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>
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)