Errors
#1

Hi i have problems with my filterscript i have much errors

pawn Код:
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(15) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(18) : error 017: undefined symbol "SetGameModeText"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(19) : error 017: undefined symbol "UsePlayerPedAnims"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(20) : error 017: undefined symbol "SetTimer"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(21) : error 017: undefined symbol "SetWorldTime"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(22) : error 017: undefined symbol "DisableInteriorEnterExits"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(24) : error 017: undefined symbol "AddPlayerClass"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(26) : error 017: undefined symbol "SetTimer"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(29) : error 017: undefined symbol "SetTimer"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(32) : error 017: undefined symbol "TextDrawCreate"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(32) : warning 213: tag mismatch
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(33) : error 017: undefined symbol "TextDrawAlignment"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(34) : error 017: undefined symbol "TextDrawBackgroundColor"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(35) : error 017: undefined symbol "TextDrawFont"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(36) : error 017: undefined symbol "TextDrawLetterSize"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(37) : error 017: undefined symbol "TextDrawColor"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(38) : error 017: undefined symbol "TextDrawSetOutline"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(39) : error 017: undefined symbol "TextDrawSetProportional"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(40) : error 017: undefined symbol "TextDrawSetShadow"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(45) : warning 235: public function lacks forward declaration (symbol "OnPlayerSpawn")
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(47) : error 017: undefined symbol "SetPlayerPos"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(48) : error 017: undefined symbol "SetPlayerFacingAngle"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(49) : error 017: undefined symbol "SetPlayerInterior"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(50) : error 017: undefined symbol "TextDrawShowForPlayer"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(64) : error 017: undefined symbol "format"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(64) : warning 202: number of arguments does not match definition
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(64) : warning 202: number of arguments does not match definition
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(64) : warning 202: number of arguments does not match definition
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(64) : warning 202: number of arguments does not match definition
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(65) : error 017: undefined symbol "TextDrawSetString"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(71) : error 017: undefined symbol "SendRconCommand"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(72) : error 017: undefined symbol "GameTextForAll"
C:\Users\Acer\Desktop\Pameigini\filterscripts\Changer.pwn(73) : error 017: undefined symbol "KillTimer"
Here is filterscript

pawn Код:
//====================================================================
//VARIABLES
//====================================================================
new GameMinutes =1;
new GameSeconds =00; // Put the time for which you gm will run
new GameTimer;
new Text:Timer;
new RoundTime = 60000;//1 minutes = 60 seconds => Put here 60 x 1000 = 60000
//====================================================================
//FORWARDS
//====================================================================
forward GameModeExitFunc(playerid);forward GameTime(playerid); // gamemode of gamemode changing and exit
forward GameModeExitFunc(playerid); // gamemode of gamemode changing and exit

public OnGameModeInit()
{
//  ConnectNPC("Npc","zombie");
    SetGameModeText("YOUR GM HERE");
    UsePlayerPedAnims();
    SetTimer("GameModeExitFunc", RoundTime, 0);
    SetWorldTime(6);
    DisableInteriorEnterExits();

    AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);

    SetTimer("Score",60000,false); // How long your GM will be. Set Your's


    GameTimer = SetTimer("GameTime",1000,1);


    Timer= TextDrawCreate(315.000000, 400.000000,"1:00");
    TextDrawAlignment(Timer,2);
    TextDrawBackgroundColor(Timer,0xFFFFFFAA);
    TextDrawFont(Timer,3);
    TextDrawLetterSize(Timer,0.499999,2.000000);
    TextDrawColor(Timer,0xffffffff);
    TextDrawSetOutline(Timer,1);
    TextDrawSetProportional(Timer,1);
    TextDrawSetShadow(Timer,1);
    //

    return 1;
}
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid,2221.1436,-1149.5422,1027.7969); // Jefferson Co-ords, Put here Yours
    SetPlayerFacingAngle(playerid,355.3727);
    SetPlayerInterior(playerid,15); // Jeferrson interior id (15)
    TextDrawShowForPlayer(playerid,Timer);
    return 1;
}
public GameTime() // TImer Format
{
    if(GameSeconds || GameMinutes)
    {
        GameSeconds--;
        if(GameSeconds <= -1)
        {
            GameMinutes--;
            GameSeconds=59;
        }
        new TimeString[256];
        format(TimeString,sizeof(TimeString),"~b~%02d~y~:~r~%02d",GameMinutes,GameSeconds);
        TextDrawSetString(Timer,TimeString);
    }

    return 1;
}
public GameModeExitFunc(playerid) {
    SendRconCommand("changemode Your GM2 Here"); // You can put your 2nd GM name. Just Replace "Your GM2 Here"
    GameTextForAll("~y~Changing Gamemode ~n~ ~w~Please Wait....",5000,1); // Gamemode changing message
    KillTimer(GameTimer);
    TextDrawHideForPlayer(playerid,Timer);


     }
Reply
#2

ah #include <a_samp> is it there?
add it at the top if its not there
Код:
#include <a_samp>
like that
Reply
#3

Thanks i didn't see that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)