How to fix warnings
#1

(3579) : warning 235: public function lacks forward declaration (symbol "IsAFireTruck")
(358 : warning 235: public function lacks forward declaration (symbol "IsAFuelTruck")
(3617) : warning 235: public function lacks forward declaration (symbol "IsATrain")
(3627) : warning 235: public function lacks forward declaration (symbol "IsANewsTruck")
(8451) : warning 235: public function lacks forward declaration (symbol "PrintStationInfo")
(9117) : warning 235: public function lacks forward declaration (symbol "EditRace")
(9180) : warning 235: public function lacks forward declaration (symbol "LoadStation")
(13197) : warning 235: public function lacks forward declaration (symbol "DelTextDrawMessage")
(13424) : warning 202: number of arguments does not match definition
(32236) : warning 235: public function lacks forward declaration (symbol "AddsOn")
(33010) : warning 235: public function lacks forward declaration (symbol "ADBy")
(33166) : warning 235: public function lacks forward declaration (symbol "RefuseMiniJob")
(33360) : warning 235: public function lacks forward declaration (symbol "AdminCountdown")
(33379) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
(33476) : warning 235: public function lacks forward declaration (symbol "FuelText")
(33499) : warning 235: public function lacks forward declaration (symbol "DistroyFuel")
(33509) : warning 235: public function lacks forward declaration (symbol "CurrentFuel")
(33945) : warning 235: public function lacks forward declaration (symbol "CashCheck")
(34281) : warning 203: symbol is never used: "PlayerPos"
(25551) : warning 204: symbol is assigned a value that is never used: "gNewsSender"
(25551 -- 34281) : warning 203: symbol is never used: "senttime"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

21 Warnings.

--------------------------------------------------------------------------------------------------------

How to fix this?
Reply
#2

public function lacks forward declaration

that public function doesn't have forward!

number of arguments does not match definition

you know english?
Reply
#3

Fixes:

(3579) : warning 235: public function lacks forward declaration (symbol "IsAFireTruck")
pawn Код:
//Add this line in script:
forward IsAFireTruck(/* the parameters here */);
(358 : warning 235: public function lacks forward declaration (symbol "IsAFuelTruck")
pawn Код:
//Add this line in script:
forward IsAFuelTruck(/* the parameters here */);
(3617) : warning 235: public function lacks forward declaration (symbol "IsATrain")
pawn Код:
//Add this line in script:
forward IsATrain(/* the parameters here */);
(3627) : warning 235: public function lacks forward declaration (symbol "IsANewsTruck")
pawn Код:
//Add this line in script:
forward IsANewsTruck(/* the parameters here */);
(8451) : warning 235: public function lacks forward declaration (symbol "PrintStationInfo")
pawn Код:
//Add this line in script:
forward PrintStationInfo(/* the parameters here */);
(9117) : warning 235: public function lacks forward declaration (symbol "EditRace")
pawn Код:
//Add this line in script:
forward EditRace(/* the parameters here */);
(9180) : warning 235: public function lacks forward declaration (symbol "LoadStation")
[pawn]//Add this line in script:
forward LoadStation(/* the parameters here */);

(13197) : warning 235: public function lacks forward declaration (symbol "DelTextDrawMessage")
pawn Код:
//Add this line in script:
forward DelTextDrawMessage(/* the parameters here */);
(13424) : warning 202: number of arguments does not match definition
Check for the Arguments in the function of that line and enter/remove parameters when necessary.

(32236) : warning 235: public function lacks forward declaration (symbol "AddsOn")
pawn Код:
//Add this line in script:
forward AddsOn(/* the parameters here */);
(33010) : warning 235: public function lacks forward declaration (symbol "ADBy")
pawn Код:
//Add this line in script:
forward ADBy(/* the parameters here */);
(33166) : warning 235: public function lacks forward declaration (symbol "RefuseMiniJob")
pawn Код:
//Add this line in script:
forward RefuseMiniJob(/* the parameters here */);
(33360) : warning 235: public function lacks forward declaration (symbol "AdminCountdown")
pawn Код:
//Add this line in script:
forward AdminCountdown(/* the parameters here */);
(33379) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
pawn Код:
//Add this line in script:
forward OnPlayerPrivmsg(/* the parameters here */);
(33476) : warning 235: public function lacks forward declaration (symbol "FuelText")
pawn Код:
//Add this line in script:
forward FuelText(/* the parameters here */);
(33499) : warning 235: public function lacks forward declaration (symbol "DistroyFuel")
pawn Код:
//Add this line in script:
forward DistroyFuel(/* the parameters here */);
(33509) : warning 235: public function lacks forward declaration (symbol "CurrentFuel")
pawn Код:
//Add this line in script:
forward CurrentFuel(/* the parameters here */);
(33945) : warning 235: public function lacks forward declaration (symbol "CashCheck")
pawn Код:
//Add this line in script:
forward IsAFuelTruck(/* the parameters here */);
(34281) : warning 203: symbol is never used: "PlayerPos"
pawn Код:
//Add this line after the PlayerPos variable:
#pragma unused PlayerPos
(25551) : warning 204: symbol is assigned a value that is never used: "gNewsSender"
pawn Код:
//Add this line after the gNewsSender variable:
#pragma unused gNewsSender
(25551 -- 34281) : warning 203: symbol is never used: "senttime"
pawn Код:
//Under OnGameModeInit(), add the function:
senttime(/* the parameters of senttime*/);
----

FAQ:

What is /* the parameters here */?
- Copy the parameters from the "public" function.
pawn Код:
//Example:
public MyFunction(lol, haha, what[]) {}
//It's forward will be:
forward MyFunction(lol, haha, what[]);
Reply
#4

Just what i was looking for! Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)