Please help me, I can't remove these Warnings!
#1

here are the warnings from PEN1 script..


Код:
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(3578) : warning 235: public function lacks forward declaration (symbol "IsAFireTruck")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(3587) : warning 235: public function lacks forward declaration (symbol "IsAFuelTruck")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(3616) : warning 235: public function lacks forward declaration (symbol "IsATrain")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(3626) : warning 235: public function lacks forward declaration (symbol "IsANewsTruck")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(8447) : warning 235: public function lacks forward declaration (symbol "PrintStationInfo")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(9113) : warning 235: public function lacks forward declaration (symbol "EditRace")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(9176) : warning 235: public function lacks forward declaration (symbol "LoadStation")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(12133) : warning 235: public function lacks forward declaration (symbol "DelTextDrawMessage")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(31160) : warning 235: public function lacks forward declaration (symbol "AddsOn")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(31934) : warning 235: public function lacks forward declaration (symbol "ADBy")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32090) : warning 235: public function lacks forward declaration (symbol "RefuseMiniJob")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32284) : warning 235: public function lacks forward declaration (symbol "AdminCountdown")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32303) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32400) : warning 235: public function lacks forward declaration (symbol "FuelText")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32423) : warning 235: public function lacks forward declaration (symbol "DistroyFuel")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32433) : warning 235: public function lacks forward declaration (symbol "CurrentFuel")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32869) : warning 235: public function lacks forward declaration (symbol "CashCheck")
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(24456) : warning 204: symbol is assigned a value that is never used: "gNewsSender"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           8696 bytes
Code size:          1163208 bytes
Data size:          2516236 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5768 cells (23072 bytes)
Total requirements: 3704524 bytes

18 Warnings.
Please tell me how to fix 'em .
Reply
#2

Forward the callbacks.
Reply
#3

How, can you show me? I'm still a beginner sorry
Reply
#4

forward CashCheks();
forward CurrentFuel();
and another
Reply
#5

oh thanks but look now I have 12 errors:

Код:
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(3597) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(3606) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(3635) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(3645) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(4051) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(4138) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(4399) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(4399) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(4399) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(6964) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(7070) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(7086) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(8466) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(9132) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(18403) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(18414) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(18486) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(18561) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(18840) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(18856) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(18855) : warning 204: symbol is assigned a value that is never used: "tmpcar"
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(20200) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(20200) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(22959) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(23000) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(28047) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(28047) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(28075) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(28075) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(30376) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(31953) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32109) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32182) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32322) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32419) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32425) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32442) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32452) : error 025: function heading differs from prototype
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32463) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(32491) : warning 202: number of arguments does not match definition
C:\Users\EhabIsaac\Documents\Downloads\Compressed\asd\gamemodes\pen1sa.pwn(24475) : warning 204: symbol is assigned a value that is never used: "gNewsSender"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
Reply
#6

/*Forwarding:
#forward IsAFireTruck();
#forward IsAFuelTruck();
#forward IsATrain();
#forward IsANewsTruck();
#forward PrintStationInfo();
#forward EditRace();
#forward LoadStation();
#forward DelTextDrawMessage();
#forward AddsOn();
#forward ADBy();
#forward RefuseMiniJob();
#forward AdminCountdown();
#forward OnPlayerPrivmsg();
#forward FuelText();
#forward DistroyFuel();
#forward CurrentFuel();
#forward CashCheck();
//Forwarding End*/
Reply
#7

  1. forward declarations are not preceeded with a #.
  2. They need to have the same parameters as the actual function (example: IsAFireTruck(vehicleid) )
  3. Stop editing the Godfather, it's old and there are a thousand servers that use it (no joke).
Reply
#8

https://sampwiki.blast.hk/wiki/Public_functions
Reply
#9

@ Vince thanks, but this is PEN1! Not GF.. I hate GF's
Reply
#10

I swear PEN1 and GF were used together or something? Sigh...

Quote:

Hey this is Ehab Isaac aka 50-Dollaz... 'Ey how ta change ma account name at da forumz?

Hey I have another accounts on this forum they are :

Coolboy94
Ehab_Isaac101
Ehab_Isaac

You should be banned for duping btw ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)