hitmans weird problem
#1

ok so the 1st problem is that i see the hitman contracts more than they actually are ,for example someone puts 1000$ contract on someone and in my hitman /portable -> contracts i see 2000$ or even 9000$ .

the second problem is ,even though the hitman kills their target,he doesnt get any more (not even the message that says "you killed your target " or something like that ) .


anyone can help me ? tell me which part of the code should i post cause i dont know where those problems come from

thx in advance.
Reply
#2

Show everything related too /portable, and your OnPlayerDeath callback
Reply
#3

i think this is the part from onplayerdeath

pawn Код:
if(PlayerInfo[playerid][pHeadValue] > 0)
    {
        if(IsPlayerConnected(killerid))
        {
            if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)
            {
                if(GoChase[killerid] == playerid)
                {
                    //ConsumingMoney[killerid] = 1;
                    new killer[MAX_PLAYER_NAME];
                    GetPlayerName(killerid, killer, sizeof(killer));
                    GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
                    format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
                    SendFamilyMessage(8, COLOR_YELLOW, string);
                    PlayerInfo[playerid][pHeadValue] = 0;
                    GotHit[playerid] = 0;
                    GetChased[playerid] = 999;
                    GoChase[killerid] = 999;
                }
            }
        }
    }
and this is the portable
pawn Код:
if(strcmp(cmd,"/portable",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
            {
                if(ConnectedToPC[playerid] == 255)
                {
                    SCM(playerid, COLOR_LIGHTBLUE, "* You have shutdowned your Laptop, and Disconnected from your Agency.");
                    ConnectedToPC[playerid] = 0;
                    return 1;
                }
                GetPlayerName(playerid, sendername, sizeof(sendername));
                SCM(playerid, COLOR_LIGHTBLUE, "* You have booted up your Laptop, and Connected to your Agency.");
                SCM(playerid, COLOR_WHITE, "|___ Hitman Agency ___|");
                SCM(playerid, COLOR_YELLOW2, "|");
                SCM(playerid, COLOR_YELLOW2, "| - News");
                SCM(playerid, COLOR_YELLOW2, "| - Contracts");
                SCM(playerid, COLOR_YELLOW2, "| - Givehit");
                SCM(playerid, COLOR_YELLOW2, "| - Order");
                SCM(playerid, COLOR_YELLOW2, "| - Ranks");
                SCM(playerid, COLOR_YELLOW2, "| - Logout");
                SCM(playerid, COLOR_WHITE, "|______________|00:00|");
                ConnectedToPC[playerid] = 255;
            }
            else
            {
                SCM(playerid, COLOR_GREY, "   You are not a Member of the Hitman Agency !");
                return 1;
            }
        }
        return 1;
    }
and the sub-commands of portable

pawn Код:
if(ConnectedToPC[playerid] == 255)
    {
        new idx;
        tmp = strtok(text, idx);
        if ((strcmp("Contracts", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Contracts")))
        {
            if(PlayerInfo[playerid][pRank] < 4)
            {
                SCM(playerid, COLOR_GREY, "   Only Hitman with Rank 4 or above can search and assign Contracts !");
                return 0;
            }
            SearchingHit(playerid);
            return 0;
        }
        else if ((strcmp("News", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("News")))
        {
                new x_nr[256];
                x_nr = strtok(text, idx);

                if(!strlen(x_nr)) {
                    SCM(playerid, COLOR_WHITE, "|__________________ Hitman Agency News __________________|");
                    SCM(playerid, COLOR_WHITE, "USAGE: News [number] or News delete [number] or News delete all");
                    format(string, sizeof(string), "1: %s :: Hitman: %s", News[hAdd1], News[hContact1]);
                    SCM(playerid, COLOR_GREY, string);
                    format(string, sizeof(string), "2: %s :: Hitman: %s", News[hAdd2], News[hContact2]);
                    SCM(playerid, COLOR_GREY, string);
                    format(string, sizeof(string), "3: %s :: Hitman: %s", News[hAdd3], News[hContact3]);
                    SCM(playerid, COLOR_GREY, string);
                    format(string, sizeof(string), "4: %s :: Hitman: %s", News[hAdd4], News[hContact4]);
                    SCM(playerid, COLOR_GREY, string);
                    format(string, sizeof(string), "5: %s :: Hitman: %s", News[hAdd5], News[hContact5]);
                    SCM(playerid, COLOR_GREY, string);
                    SCM(playerid, COLOR_WHITE, "|________________________________________________________|");
                    return 0;
                }//lets start
                if(strcmp(x_nr,"1",true) == 0)
                {
                    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Already placed a News Message, it must be deleted first !"); return 0; }
                    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   You must be Rank 3 to write messages to the News Channel !"); return 0; }
                    if(News[hTaken1] == 0)
                    {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(strlen(text)-(strlen(x_nr)) < 9) { SCM(playerid, COLOR_GREY, "   News Text to short !"); return 0; }
                        format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string, 0, strlen(string), 255);
                        format(string, sizeof(string), "%s",sendername); strmid(News[hContact1], string, 0, strlen(string), 255);
                        News[hTaken1] = 1; PlacedNews[playerid] = 1;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else
                    {
                        SCM(playerid, COLOR_GREY, "   Spot 1 is already Taken !");
                        return 0;
                    }
                }
                else if(strcmp(x_nr,"2",true) == 0)
                {
                    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Already placed a News Message, it must be deleted first !"); return 0; }
                    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   You must be Rank 3 to write messages to the News Channel !"); return 0; }
                    if(News[hTaken2] == 0)
                    {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(strlen(text)-(strlen(x_nr)) < 9) { SCM(playerid, COLOR_GREY, "   News Text to short !"); return 0; }
                        format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string, 0, strlen(string), 255);
                        format(string, sizeof(string), "%s",sendername); strmid(News[hContact2], string, 0, strlen(string), 255);
                        News[hTaken2] = 1; PlacedNews[playerid] = 1;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else
                    {
                        SCM(playerid, COLOR_GREY, "   Spot 2 is already Taken !");
                        return 0;
                    }
                }
                else if(strcmp(x_nr,"3",true) == 0)
                {
                    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Already placed a News Message, it must be deleted first !"); return 0; }
                    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   You must be Rank 3 to write messages to the News Channel !"); return 0; }
                    if(News[hTaken3] == 0)
                    {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(strlen(text)-(strlen(x_nr)) < 9) { SCM(playerid, COLOR_GREY, "   News Text to short !"); return 0; }
                        format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string, 0, strlen(string), 255);
                        format(string, sizeof(string), "%s",sendername); strmid(News[hContact3], string, 0, strlen(string), 255);
                        News[hTaken3] = 1; PlacedNews[playerid] = 1;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else
                    {
                        SCM(playerid, COLOR_GREY, "   Spot 3 is already Taken !");
                        return 0;
                    }
                }
                else if(strcmp(x_nr,"4",true) == 0)
                {
                    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Already placed a News Message, it must be deleted first !"); return 0; }
                    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   You must be Rank 3 to write messages to the News Channel !"); return 0; }
                    if(News[hTaken4] == 0)
                    {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(strlen(text)-(strlen(x_nr)) < 9) { SCM(playerid, COLOR_GREY, "   News Text to short !"); return 0; }
                        format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string, 0, strlen(string), 255);
                        format(string, sizeof(string), "%s",sendername); strmid(News[hContact4], string, 0, strlen(string), 255);
                        News[hTaken4] = 1; PlacedNews[playerid] = 1;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else
                    {
                        SCM(playerid, COLOR_GREY, "   Spot 4 is already Taken !");
                        return 0;
                    }
                }
                else if(strcmp(x_nr,"5",true) == 0)
                {
                    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Already placed a News Message, it must be deleted first !"); return 0; }
                    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   You must be Rank 3 to write messages to the News Channel !"); return 0; }
                    if(News[hTaken5] == 0)
                    {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(strlen(text)-(strlen(x_nr)) < 9) { SCM(playerid, COLOR_GREY, "   News Text to short !"); return 0; }
                        format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string, 0, strlen(string), 255);
                        format(string, sizeof(string), "%s",sendername); strmid(News[hContact5], string, 0, strlen(string), 255);
                        News[hTaken5] = 1; PlacedNews[playerid] = 1;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else
                    {
                        SCM(playerid, COLOR_GREY, "   Spot 5 is already Taken !");
                        return 0;
                    }
                }
                else if(strcmp(x_nr,"delete",true) == 0)
                {
                    if(PlayerInfo[playerid][pRank] < 4)
                    {
                        SCM(playerid, COLOR_GREY, "   You must be Rank 4 to delete messages from the News Channel !");
                        return 0;
                    }
                    new string1[MAX_PLAYER_NAME];
                    new x_tel[256];
                    x_tel = strtok(text, idx);
                    if(!strlen(x_tel)) {
                        SCM(playerid, COLOR_WHITE, "USAGE: News delete [number] or News delete all.");
                        return 0;
                    }
                    if(strcmp(x_tel,"1",true) == 0)
                    {
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
                        News[hTaken1] = 0;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (1) from the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else if(strcmp(x_tel,"2",true) == 0)
                    {
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
                        News[hTaken2] = 0;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (2) from the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else if(strcmp(x_tel,"3",true) == 0)
                    {
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
                        News[hTaken3] = 0;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (3) from the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else if(strcmp(x_tel,"4",true) == 0)
                    {
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
                        News[hTaken4] = 0;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (4) from the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else if(strcmp(x_tel,"5",true) == 0)
                    {
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
                        News[hTaken5] = 0;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (5) from the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else if(strcmp(x_tel,"all",true) == 0)
                    {
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
                        News[hTaken1] = 0;
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
                        News[hTaken2] = 0;
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
                        News[hTaken3] = 0;
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
                        News[hTaken4] = 0;
                        format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
                        format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
                        News[hTaken5] = 0;
                        SCM(playerid, COLOR_LIGHTBLUE, "* You deleted all the News Message from the Hitman Agency's News Channel.");
                        return 0;
                    }
                    else
                    {
                        SCM(playerid, COLOR_WHITE, "USAGE: News delete [number] or News delete all.");
                        return 0;
                    }
                }
                else { return 0; }
        }
        else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
        {
            if(PlayerInfo[playerid][pRank] < 4)
            {
                SCM(playerid, COLOR_GREY, "   You need Rank 4 to Give Contracts to Hitmans !");
                return 0;
            }
            if(hitfound == 0)
            {
                SCM(playerid, COLOR_GREY, "   There is no Hit Founded yet, use Contracts in the Portable first !");
                return 0;
            }
            tmp = strtok(text, idx);
            if(!strlen(tmp))
            {
                SCM(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]");
                return 0;
            }
            //giveplayerid = strval(tmp);
            giveplayerid = ReturnUser(tmp);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
//                  if(PlayerInfo[giveplayerid][pMember] != 8)
                    if(PlayerInfo[giveplayerid][pLeader] != 8 && PlayerInfo[giveplayerid][pMember] != 8)
                    {
                        SCM(playerid, COLOR_GREY, "   That player is not a Hitman !");
                        return 0;
                    }
                    if(GoChase[giveplayerid] < 999)
                    {
                        SCM(playerid, COLOR_GREY, "   That Hitman is already busy with a Contract !");
                        return 0;
                    }
                    if(IsPlayerConnected(hitid))
                    {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        GetPlayerName(giveplayerid, giver, sizeof(giver));
                        GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
                        //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
                        //SCM(playerid, COLOR_YELLOW, string);
                        //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
                        //SCM(giveplayerid, COLOR_YELLOW, string);
                        format(string, sizeof(string), "* Hitman %s, assigned Hitman %s to kill: %s(ID:%d), for $%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
                        SendFamilyMessage(8, COLOR_YELLOW, string);
                        GoChase[giveplayerid] = hitid;
                        GetChased[hitid] = giveplayerid;
                        GotHit[hitid] = 1;
                        hitid = 0;
                        hitfound = 0;
                        return 0;
                    }
                    else
                    {
                        SCM(playerid, COLOR_GREY, "   The Contracted Person is offline, use Contracts in the Portable again !");
                        return 0;
                    }
                }
                return 0;
            }
            else
            {
                SCM(playerid, COLOR_GREY, "   That Hitman is not Online, or ain't a Hitman !");
                return 0;
            }
        }
        else if ((strcmp("Ranks", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Ranks")))
        {
            SCM(playerid, COLOR_WHITE, "|__________________ Agency's Ranks __________________|");
            for(new i=0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
                    {
                        GetPlayerName(i, giveplayer, sizeof(giveplayer));
                        format(string, sizeof(string), "* %s: Rank %d", giveplayer,PlayerInfo[i][pRank]);
                        SCM(playerid, COLOR_GREY, string);
                    }
                }
            }
        }
        else if ((strcmp("Order", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Order")))
        {
            if(OrderReady[playerid] > 0)
            {
                SCM(playerid, COLOR_GREY, "   You already Ordered a Package, pick it up at your Head Quarter's Front Door first !");
                return 0;
            }
            tmp = strtok(text, idx);
            if ((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
            {
                if(PlayerInfo[playerid][pRank] < 1) { SCM(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Package !"); return 0; }
                if(GetPlayerMoney(playerid) > 4999)
                {
                    SCM(playerid, COLOR_LIGHTBLUE, "* You have Ordered Package 1 ($5000), it will be delivered at your Head Quarter's Front Door.");
                    OrderReady[playerid] = 1;
                    return 0;
                }
                else
                {
                    SCM(playerid, COLOR_GREY,"   You can't afford that Package !");
                    return 0;
                }
            }
            else if ((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
            {
                if(PlayerInfo[playerid][pRank] < 2) { SCM(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Package !"); return 0; }
                if(GetPlayerMoney(playerid) > 5999)
                {
                    SCM(playerid, COLOR_LIGHTBLUE, "* You have Ordered Package 2 ($6000), it will be delivered at your Head Quarter's Front Door.");
                    OrderReady[playerid] = 2;
                    return 0;
                }
                else
                {
                    SCM(playerid, COLOR_GREY,"   You can't afford that Package !");
                    return 0;
                }
            }
            else if ((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
            {
                if(PlayerInfo[playerid][pRank] < 2) { SCM(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Package !"); return 0; }
                if(GetPlayerMoney(playerid) > 5999)
                {
                    SCM(playerid, COLOR_LIGHTBLUE, "* You have Ordered Package 3 ($6000), it will be delivered at your Head Quarter's Front Door.");
                    OrderReady[playerid] = 3;
                    return 0;
                }
                else
                {
                    SCM(playerid, COLOR_GREY,"   You can't afford that Package !");
                    return 0;
                }
            }
            else if ((strcmp("4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("4")))
            {
                if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Package !"); return 0; }
                if(GetPlayerMoney(playerid) > 7999)
                {
                    SCM(playerid, COLOR_LIGHTBLUE, "* You have Ordered Package 4 ($8000), it will be delivered at your Head Quarter's Front Door.");
                    OrderReady[playerid] = 4;
                    return 0;
                }
                else
                {
                    SCM(playerid, COLOR_GREY,"   You can't afford that Package !");
                    return 0;
                }
            }
            else if ((strcmp("5", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("5")))
            {
                if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Package !"); return 0; }
                if(GetPlayerMoney(playerid) > 7999)
                {
                    SCM(playerid, COLOR_LIGHTBLUE, "* You have Ordered Package 5 ($8000), it will be delivered at your Head Quarter's Front Door.");
                    OrderReady[playerid] = 5;
                    return 0;
                }
                else
                {
                    SCM(playerid, COLOR_GREY,"   You can't afford that Package !");
                    return 0;
                }
            }
            else if ((strcmp("6", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("6")))
            {
                if(PlayerInfo[playerid][pRank] < 4) { SCM(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Package !"); return 0; }
                if(GetPlayerMoney(playerid) > 8499)
                {
                    SCM(playerid, COLOR_LIGHTBLUE, "* You have Ordered Package 6 ($8500), it will be delivered at your Head Quarter's Front Door.");
                    OrderReady[playerid] = 6;
                    return 0;
                }
                else
                {
                    SCM(playerid, COLOR_GREY,"   You can't afford that Package !");
                    return 0;
                }
            }
            else if ((strcmp("7", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("7")))
            {
                if(PlayerInfo[playerid][pRank] < 4) { SCM(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Package !"); return 0; }
                if(GetPlayerMoney(playerid) > 8499)
                {
                    SCM(playerid, COLOR_LIGHTBLUE, "* You have Ordered Package 7 ($8500), it will be delivered at your Head Quarter's Front Door.");
                    OrderReady[playerid] = 7;
                    return 0;
                }
                else
                {
                    SCM(playerid, COLOR_GREY,"   You can't afford that Package !");
                    return 0;
                }
            }
            else
            {
                SCM(playerid, COLOR_WHITE, "|__________________ Available Packages __________________|");
                if(PlayerInfo[playerid][pRank] >= 1) { SCM(playerid, COLOR_GREY, "|(1) ($5000 ) Rank 1 - 5: Knife, Desert Eagle, MP5, Shotgun"); }
                if(PlayerInfo[playerid][pRank] >= 2) { SCM(playerid, COLOR_GREY, "|(2) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, M4, MP5, Shotgun"); }
                if(PlayerInfo[playerid][pRank] >= 2) { SCM(playerid, COLOR_GREY, "|(3) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun"); }
                if(PlayerInfo[playerid][pRank] >= 3) { SCM(playerid, COLOR_GREY, "|(4) ($8000) Rank 3 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
                if(PlayerInfo[playerid][pRank] >= 3) { SCM(playerid, COLOR_GREY, "|(5) ($8000) Rank 3 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
                if(PlayerInfo[playerid][pRank] >= 4) { SCM(playerid, COLOR_GREY, "|(6) ($8500) Rank 4 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
                if(PlayerInfo[playerid][pRank] >= 4) { SCM(playerid, COLOR_GREY, "|(7) ($8500) Rank 4 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
                SCM(playerid, COLOR_WHITE, "|________________________________________________________|");
                return 0;
            }
        }
        else if ((strcmp("Logout", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Logout")))
        {
            SCM(playerid, COLOR_LIGHTBLUE, "* You have shutdowned your Laptop, and Disconnected from your Agency.");
            ConnectedToPC[playerid] = 0;
            return 0;
        }
        else
        {
            SCM(playerid, COLOR_WHITE, "|___ Hitman Agency ___|");
            SCM(playerid, COLOR_YELLOW2, "| - News");
            SCM(playerid, COLOR_YELLOW2, "| - Contracts");
            SCM(playerid, COLOR_YELLOW2, "| - Givehit");
            SCM(playerid, COLOR_YELLOW2, "| - Backup");
            SCM(playerid, COLOR_YELLOW2, "| - Order");
            SCM(playerid, COLOR_YELLOW2, "| - Ranks");
            SCM(playerid, COLOR_YELLOW2, "| - Logout");
            SCM(playerid, COLOR_YELLOW2, "|");
            SCM(playerid, COLOR_WHITE, "|______________|00:00|");
            return 0;
        }
        return 0;
    }

i think thats everything related to my hitmans problem ,i hope you can help me
Reply
#4

duh dude its SendClientMessage not SCM
Reply
#5

Like Phoebe said, Replace every SCM to
pawn Код:
SendClientMessage
Reply
#6

Or make a simple define:
pawn Код:
#define SCM(%1, %2, %3); SendClientMessage(%1, %2, %3);
Reply
#7

it is already defined SCM god i aint that retarded ,SCM replaces sendclientmessage and that wouldnt have anything to do with the fact that the player doesnt get his money for the contract ,also i would get errors -_- ''
Reply
#8

Lmfao @ the idiots blaming your #define SCM SendClientMessage
Reply
#9

Quote:
Originally Posted by PrawkC
Посмотреть сообщение
Lmfao @ the idiots blaming your #define SCM SendClientMessage
Where is your 'best' solution?
Reply
#10

still,nobody can help me ? its very important...
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)