[Ajuda] 18 erros
#1

C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(35 7 : warning 235: public function lacks forward declaration (symbol "IsAFireTruck")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(35 87) : warning 235: public function lacks forward declaration (symbol "IsAFuelTruck")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(36 16) : warning 235: public function lacks forward declaration (symbol "IsATrain")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(36 26) : warning 235: public function lacks forward declaration (symbol "IsANewsTruck")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(84 47) : warning 235: public function lacks forward declaration (symbol "PrintStationInfo")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(91 13) : warning 235: public function lacks forward declaration (symbol "EditRace")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(91 76) : warning 235: public function lacks forward declaration (symbol "LoadStation")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(12 133) : warning 235: public function lacks forward declaration (symbol "DelTextDrawMessage")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(31 160) : warning 235: public function lacks forward declaration (symbol "AddsOn")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(31 934) : warning 235: public function lacks forward declaration (symbol "ADBy")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 090) : warning 235: public function lacks forward declaration (symbol "RefuseMiniJob")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 284) : warning 235: public function lacks forward declaration (symbol "AdminCountdown")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 303) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 400) : warning 235: public function lacks forward declaration (symbol "FuelText")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 423) : warning 235: public function lacks forward declaration (symbol "DistroyFuel")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 433) : warning 235: public function lacks forward declaration (symbol "CurrentFuel")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 869) : warning 235: public function lacks forward declaration (symbol "CashCheck")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(24 456) : 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: 2516840 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5768 cells (23072 bytes)
Total requirements: 3705128 bytes

18 Warnings.
Reply
#2

Sгo avisos , esses avisos significa que as forward das publics nгo estгo declaradas!
Reply
#3

Minha bola de cristal quebrou, vou ligar para o fabricante.


#TOPIC Posta o code mano, nгo tenho bola de cristal.
Tenta
Declarar as forward das publics.
Reply
#4

public IsAFireTruck(carid)
public IsAFuelTruck(carid)
public IsATrain(carid)
public IsANewsTruck(carid)
public PrintStationInfo(playerid,targetid)
public EditRace(playerid, name[])
public LoadStation()
public DelTextDrawMessage()
public AddsOn()public ADBy(playerid, killerid, reason)
public RefuseMiniJob(playerid)
public AdminCountdown()
public OnPlayerPrivmsg(playerid, recieverid, text[])
public FuelText(playerid)
public DistroyFuel(playerid)
public CurrentFuel(playerid)
public CashCheck()
gNewsSender = playerid;
Reply
#5

pawn Код:
forward IsAFireTruck(carid);
public IsAFireTruck(carid)
forward IsAFuelTruck(carid);
public IsAFuelTruck(carid)
forward IsATrain(carid);
public IsATrain(carid)
forward IsANewsTruck(carid);
public IsANewsTruck(carid)
forward PrintStationInfo(playerid,targetid);
public PrintStationInfo(playerid,targetid)
forward EditRace(playerid, name[]);
public EditRace(playerid, name[])
forward LoadStation();
public LoadStation()
forward DelTextDrawMessage();
public DelTextDrawMessage()
forward AddsOn();
public AddsOn()
forward ADBy(playerid, killerid, reason);
public ADBy(playerid, killerid, reason)
forward RefuseMiniJob(playerid);
public RefuseMiniJob(playerid)
forward AdminCountDown();
public AdminCountdown()
forward OnPlayerPrivmsg(playerid, recieverid, text[]);
public OnPlayerPrivmsg(playerid, recieverid, text[])
forward FuelText(playerid);
public FuelText(playerid)
forward DistroyFuel(playerid);
public DistroyFuel(playerid)
forward CurrentFuel(playerid);
public CurrentFuel(playerid)
forward CashCheck();
public CashCheck()
Reply
#6

C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 303) : warning 235: public function lacks forward declaration (symbol "AdminCountdown")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(24 475) : 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: 2516840 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5768 cells (23072 bytes)
Total requirements: 3705128 bytes

2 Warnings.
Reply
#7

32 303 Manda a linha.
Reply
#8

pawn Код:
public AdminCountdown()
{
    if(cd_seconds <= 0)
    {
        GameTextForAll("~g~GO GO GO!",3000,4);
        Countdown = 0;
        KillTimer(cd_timer);
        cdto = 0;
    }
    else
    {
        new output[10];
        format(output, sizeof(output), "%d", cd_seconds);
        GameTextForAll(output,1001,4);
    }
    cd_seconds = cd_seconds - 1;
    return;
}
Reply
#9

Coloca em cima de
pawn Код:
public AdminCountdown()
Isso
pawn Код:
forward AdminCountDown();
Reply
#10

C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(32 304) : warning 235: public function lacks forward declaration (symbol "AdminCountdown")
C:\Users\HP\Desktop\pen1sa\gamemodes\pen1sa.pwn(24 476) : 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: 2516840 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5768 cells (23072 bytes)
Total requirements: 3705128 bytes

2 Warnings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)