SA-MP Forums Archive
Error 21 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error 21 (/showthread.php?tid=439397)



Error 21 - Badarau - 25.05.2013

error 021: symbol already defined: "main"
And the lines:
pawn Код:
new PlayerText:MainJobBox[MAX_PLAYERS],
    PlayerText:JobMenuTD[MAX_PLAYERS],
    PlayerText:PizzaBoxTD[MAX_PLAYERS],
    PlayerText:MasterTrashBox[MAX_PLAYERS],
    PlayerText:TaxiBox[MAX_PLAYERS],
    PlayerText:PlumberBox[MAX_PLAYERS],
    PlayerText:PizzaJobTD[MAX_PLAYERS],
    PlayerText:TrashBoxTD[MAX_PLAYERS],
    PlayerText:BusJobBox[MAX_PLAYERS],
    PlayerText:TrasherTD[MAX_PLAYERS],
    PlayerText:BusTD[MAX_PLAYERS],
    PlayerText:JobExitTD[MAX_PLAYERS],
    //
    PlayerText:TrashMasterTD[MAX_PLAYERS],
    PlayerText:TaxiTD[MAX_PLAYERS],
    PlayerText:PlumberTD[MAX_PLAYERS],
    PlayerText:PizzaJobDes[MAX_PLAYERS],
    PlayerText:TrashJobDes[MAX_PLAYERS],
    PlayerText:BusTDdes[MAX_PLAYERS],
    //
    PlayerText:TrashMasterTDdes[MAX_PLAYERS],
    PlayerText:TaxiTDdes[MAX_PLAYERS],
    PlayerText:PlumberTDdes[MAX_PLAYERS],

    //=========================================================================
    //================================[(Player)Variables]======================
    //=========================================================================

    InJob[MAX_PLAYERS],
    CanJob[MAX_PLAYERS],
    PizzaCP[MAX_PLAYERS],
    TrashCP[MAX_PLAYERS],
    TaxiCP[MAX_PLAYERS],
    PlumberCP[MAX_PLAYERS],
    TrashMasterCP[MAX_PLAYERS],
    BusCP[MAX_PLAYERS],
    Bus[5],
    PizzaBike[5],
    Trasher[5],
    Plumber[5],
    TrashMaster[5],
    Taxi[5],

    //=========================================================================
    //================================[Pickup Variables]=======================
    //=========================================================================

    PizzaPickup,
    TrashPickup,
    BusPickup,
    TrashMasterPickup,
    TaxiPickup,
    PlumberPickup;

    main()
    {
            print("\n----------------------------------");
            print(" Blank Gamemode by your name here");
            print("----------------------------------\n");
    }
I really don't know what to do...i can't delete one,cuz i get more errors...

Rep.


Re: Error 21 - YoungLoko - 25.05.2013

Try Opening Pawno And copying the


main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif

Then paste It over the one you have