Jump to content
  • 0

Problema comanda


RaulSTAR

Question

Buna , deci azi m-am gandit sa fac un /store personalizat pt. THA , si m-am inspirat de la STOREul original de la mafii.

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

{

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

{

if(PlayerToPoint(2.0, playerid, 934.3364,7.3391,1000.9910) || PlayerToPoint(2.0, playerid, 1287.1769,-780.4103,1091.9063) || PlayerToPoint(2.0, playerid, 1102.6122,-295.8387,73.9922) || PlayerToPoint(2.0, playerid, 1210.7998,3.4352,1000.9219) || PlayerToPoint(2.0, playerid, 752.7310,1442.9974,1102.7031))

    {

        ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, ""color_orange"Store Weapon Lists", ""wh"Health "color_red"500"color_lime"$\n"wh"Extra Health "color_red"1,000"color_lime"$\n"wh"Katana "color_red"1,000"color_green"$\n"wh"Deagle "color_red"2,000$\n"wh"Ak-47 "color_red"3,700"color_green"$\n"wh"MP5 "color_red"3,500"color_green"$","Buy", "Cancel");

        return 1;

}

}

else

{

SendClientMessage(playerid, COLOR_WHITE,"You are not a family member");

return 1;

}

Si am facut /storeh

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

      {

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

    {

if(PlayerToPoint(2.0, playerid, -784.9709,500.6018,1371.7422))

{

        ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, ""color_orange"Store Weapon Lists", ""wh"Health "color_red"500"color_lime"$\n"wh"Extra Health "color_red"1,000"color_lime"$\n"wh"Sniper "color_red"500"color_green"$\n"wh"Deagle "color_red"500$\n"wh"Spas "color_red"500"color_green"$\n"wh"Knife "color_red"500"color_green"$","Buy", "Cancel");

        return 1;

}

}

else

{

SendClientMessage(playerid, COLOR_WHITE,"You are not a family member");

return 1;

}

}

}

Dar am o mica / mare problema , cand intru in joc si incerc sa scriu /storeh , ma duc la acel punct cu factiunea cu id 8 si nu merge . Daca scriu /store macar apare You are not a family member dar la /storeh NIMIC.

Care stiti care poate fi problema?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Poate nu esti la locul unde ai setat,vezi daca iti zice mesajul care l-am pus.

[pawn]if(strcmp(cmd, "/storeh", true) == 0)

        {

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

          {

          if(PlayerToPoint(2.0, playerid, -784.9709,500.6018,1371.7422))

        {

              ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, ""color_orange"Store Weapon Lists", ""wh"Health "color_red"500"color_lime"$\n"wh"Extra Health "color_red"1,000"color_lime"$\n"wh"Sniper "color_red"500"color_green"$\n"wh"Deagle "color_red"500$\n"wh"Spas "color_red"500"color_green"$\n"wh"Knife "color_red"500"color_green"$","Buy", "Cancel");

              return 1;

        }

      }

      else

      {

        SendClientMessage(playerid, COLOR_WHITE,"You are not a family member");

        return 1;

      }

    else

      {

        SendClientMessage(playerid, COLOR_WHITE,"You are at wrong place");

        return 1;

      }

  }

}[/pawn]

gXvsYS
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.