Jump to content
  • 0

Problema PlayerToPoint!


BlueSkiLLz

Question

Nick: ..:Lucian:..

Problema: Am facut un dialog in care foloseste PlayerToPoint , dar merge doar la prima factiune la restul nu merge comanda , nu se intampla nimic , nu e completa comanda aici ca o pun degeaba pe toata am pus doar prima factiune care merge si una dintre care nu merge.

Erori / warnings: -

Lini/script: [pawn]if(strcmp(cmd, "/takeguns", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)

            {

                if (PlayerToPoint(3, playerid, 1208.9657,-27.8700,1000.9531))

                {

                    ShowPlayerDialog(playerid,68,DIALOG_STYLE_LIST,"Take Guns","Silenced 9mm\nDesert Eagle\nMP5\nAK-47\nM4\nCombat Shotgun\nViata","Alege","Anuleaza");

                }

            }

              else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)

            {

                if (PlayerToPoint(3, playerid, 438.0905,1411.5494,1084.3047))

                {

                      ShowPlayerDialog(playerid,77,DIALOG_STYLE_LIST,"Take Guns","Silenced 9mm\nDesert Eagle\nMP5\nAK-47\nM4\nCombat Shotgun\nViata","Alege","Anuleaza");

                }

            }

            else

            {

                SendClientMessage(playerid, COLOR_GRAD2, "Nu esti langa checkpoint-ul cu /takeguns!");

                return 1;

                }

        }

        return 1;

    }  [/pawn]

Ai incercat sa rezolvi singur ?: Incerca dar nu merge :-?

PS: Scuze nu am vazut ca sa pus Model de postare.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

[pawn]

if(strcmp(cmd, "/takeguns", true) == 0)

{

if (PlayerToPoint(3, playerid, 438.0905,1411.5494,1084.3047))

{

if(PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pLeader] == 5)

ShowPlayerDialog(playerid,68,DIALOG_STYLE_LIST,"Take Guns","Silenced 9mm\nDesert Eagle\nMP5\nAK-47\nM4\nCombat Shotgun\nViata","Alege","Anuleaza");

else if(PlayerInfo[playerid][pMember] == 16 && PlayerInfo[playerid][pLeader] == 16)

ShowPlayerDialog(playerid,77,DIALOG_STYLE_LIST,"Take Guns","Silenced 9mm\nDesert Eagle\nMP5\nAK-47\nM4\nCombat Shotgun\nViata","Alege","Anuleaza");

}

else

return SendClientMessage(playerid, COLOR_GRAD2, "Nu esti langa checkpoint-ul cu /takeguns!");

return 1;

}[/pawn]

Incearca asa, am modificat putin comanda ta. Apropo, acolo la prima ai id-ul dialogului 68 si la a doua ai 77. Sigur exista dialogul cu ID-ul 77?

Link to comment
Share on other sites

Incearca asa, am modificat putin comanda ta. Apropo, acolo la prima ai id-ul dialogului 68 si la a doua ai 77. Sigur exista dialogul cu ID-ul 77?

Aici era greseala.

La ondialogresponde aveau id-uri la fel :P

Locked am revolvat

Multumesc WopsS

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.