Error With Code
#1

I got this Old Cops n Robebrs, im new and i want to work with this adding new features and making a good Cops and Robbers GameMode
But im searching for resovle thsi errors and i cant find, then i ask

The GameMode is: http://forum.sa-mp.com/index.php?topic=22981.0
I dont edit, just when try to copile it give the next errors:

Код:
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(99) : warning 235: public function lacks forward declaration (symbol "GetPlayerCaption")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(103) : error 090: public functions may not return arrays (symbol "GetPlayerCaption")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(106) : warning 235: public function lacks forward declaration (symbol "minrand")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(111) : warning 235: public function lacks forward declaration (symbol "PlayerSuspectPlayer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(141) : warning 235: public function lacks forward declaration (symbol "SuspectPlayer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(153) : warning 235: public function lacks forward declaration (symbol "UnsuspectPlayer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(180) : warning 235: public function lacks forward declaration (symbol "IsCopInRange")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(195) : warning 235: public function lacks forward declaration (symbol "RegisterPlayer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(226) : warning 225: unreachable code
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(229) : warning 235: public function lacks forward declaration (symbol "LoginToServer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(249) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(288) : warning 235: public function lacks forward declaration (symbol "SavePlayerStats")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(303) : warning 235: public function lacks forward declaration (symbol "substr")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(306) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(312) : error 090: public functions may not return arrays (symbol "substr")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(315) : warning 235: public function lacks forward declaration (symbol "IsInDrugBuyRange")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(324) : warning 235: public function lacks forward declaration (symbol "InterpCommand")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(326) : error 090: public functions may not return arrays (symbol "InterpCommand")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(329) : warning 235: public function lacks forward declaration (symbol "SendMessageToTeam")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(340) : warning 235: public function lacks forward declaration (symbol "PlayerUseDrugs")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(354) : warning 235: public function lacks forward declaration (symbol "IsPlayerInRange")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(368) : warning 235: public function lacks forward declaration (symbol "PlayerRequestDrugs")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(389) : warning 235: public function lacks forward declaration (symbol "PlayerBuyDrugs")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(445) : warning 235: public function lacks forward declaration (symbol "PlayerRobInterior")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(476) : warning 235: public function lacks forward declaration (symbol "SetPlayerRandomSpawn")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(483) : warning 235: public function lacks forward declaration (symbol "IsStr")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(489) : warning 235: public function lacks forward declaration (symbol "GetMoneyFraction")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(494) : warning 235: public function lacks forward declaration (symbol "BuyStuntTicket")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(509) : warning 235: public function lacks forward declaration (symbol "EnterStuntMode")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(535) : warning 235: public function lacks forward declaration (symbol "QuitStunt")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(552) : warning 235: public function lacks forward declaration (symbol "EchoPlayerStats")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(568) : warning 235: public function lacks forward declaration (symbol "AdjustGrav")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(583) : warning 235: public function lacks forward declaration (symbol "RestoreGrav")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(595) : warning 235: public function lacks forward declaration (symbol "AdjustTime")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(610) : warning 235: public function lacks forward declaration (symbol "SpawnVehicle")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(630) : warning 235: public function lacks forward declaration (symbol "RevokePlayerStuntTicket")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(655) : warning 235: public function lacks forward declaration (symbol "RevokeAllStuntTickets")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(676) : warning 235: public function lacks forward declaration (symbol "KillUser")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(691) : warning 235: public function lacks forward declaration (symbol "EnableStunt")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(704) : warning 235: public function lacks forward declaration (symbol "DisableStunt")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(717) : warning 235: public function lacks forward declaration (symbol "SendPlayerCash")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(745) : warning 235: public function lacks forward declaration (symbol "IsValidVehicle")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(790) : warning 235: public function lacks forward declaration (symbol "BuyPilot")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(811) : warning 235: public function lacks forward declaration (symbol "RemovePlayersFromStunt")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(848) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1073) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1094) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1112) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1143) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1146) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1177) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1317) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1326) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1348) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1354) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1470) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1497) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1526) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1538) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1611) : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1621) : warning 235: public function lacks forward declaration (symbol "SetPlayerTeamFromClass")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1626) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1631) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1681) : warning 235: public function lacks forward declaration (symbol "ScoreTimer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1694) : warning 235: public function lacks forward declaration (symbol "PingTimer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1717) : warning 235: public function lacks forward declaration (symbol "LoginTimer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1740) : warning 235: public function lacks forward declaration (symbol "CountDownRobberyTimer")
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1754) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1755) : warning 217: loose indentation
C:\Documents and Settings\Ranslsad\Escritorio\GTA SA Server\Archangel Cops and Robbers\gamemodes\cnrv2.pwn(1760) : warning 235: public function lacks forward declaration (symbol "MonitorVehicles")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.

I already added the needed fiels in pawno includes.

What can i do?
Thanks
Sorry for my bad english im spanish.

Greetings

Ranslsad
Reply
#2

You'll need to forward those functions or change them to stock (if they're not used for timers or callbacks) and you'll also need to indent your code.
Reply
#3

First of all thanks for reply, but i told in first post that im new.
I dont know how to do that

Can you explain like if im a child hehe

Greetings

Ranslsad
Reply
#4

Then you should start with basics first:
http://forum.sa-mp.com/index.php?topic=2750.0
https://sampwiki.blast.hk/wiki/Scripting_Basics
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)