Jump to content
  • 0

Minigame Error


ruben88

Question

Buna,deci am incercat sa bag minigame-ul asta in GM->Click

Dar imi da aceste erruori!

error 017: undefined symbol "DestroyDynamicCP"
error 017: undefined symbol "DestroyDynamicCP"
warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP")
warning 235: public function lacks forward declaration (symbol "OnPlayerLeaveDynamicCP")
error 017: undefined symbol "CreateDynamicCP"
warning 225: unreachable code
warning 219: local variable "id" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

Nush ce nu am facut bine,am bagat tot ce era in script,cred..

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Da a mers mersi dar la comanda asta imi da don't send

        if (strcmp(cmdtext, "/plant", true) == 0)

        {

            if(IsPlanted[id] == 0)

            {

                    if(GetPlayerTeam(playerid) == TEAM_RED)

                    {

                                if(IsPlayerInRangeOfPoint(playerid, 7.0, 3787.4651,-1002.8569,25.4665))

                                {

                                        IsPlanted[id] = 1;

                                        BombTimer = SetTimer("Bomb",30000,false);

                                        SendClientMessageToAll(COLOR_BLUE, "The Bomb has been planted");

                                        BombC = CreateDynamicCP(3787.4651,-1002.8569,25.4665, 1.5, -1, -1, -1, 100.0);

                                        return 1;

                                }

                                else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) You must in CT Generator Room");

                        }

                        else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Only Terrorist can use this command");

                }

                else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Bomb has been planted");

}

    return 1;

}

Si daca o pun fara asta

        if (strcmp(cmdtext, "/plant", true) == 0)

        {

            if(IsPlanted[id] == 0)

            {

                    if(GetPlayerTeam(playerid) == TEAM_RED)

                    {

                                if(IsPlayerInRangeOfPoint(playerid, 7.0, 3787.4651,-1002.8569,25.4665))

                                {

                                        IsPlanted[id] = 1;

                                        BombTimer = SetTimer("Bomb",30000,false);

                                        SendClientMessageToAll(COLOR_BLUE, "The Bomb has been planted");

                                        BombC = CreateDynamicCP(3787.4651,-1002.8569,25.4665, 1.5, -1, -1, -1, 100.0);

                                        return 1;

                                }

                                else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) You must in CT Generator Room");

                        }

                        else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Only Terrorist can use this command");

                }

                else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Bomb has been planted");

}

    return 1;

}

Imi da unracble code sau geva de genu :D

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.