What's wrong with my /fishes command?
#3

I now have it all like this:

pawn Код:
CMD:fishes(playerid, params[])
{
    new string[2048];
    SendClientMessage(playerid, COLOR_ORANGE, "Fish Inventory{FFFFFF}:");
    if(PlayerInfo[playerid][pFishName1] == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Slot 1: Empty.");
    }
    if(PlayerInfo[playerid][pFishName1] == 1)
    {
        format(string, sizeof(string), "Slot 1: Shark weighing %d lbs.", PlayerInfo[playerid][pFish1]);
    }
    if(PlayerInfo[playerid][pFishName1] == 2)
    {
        format(string, sizeof(string), "Slot 1: Clownfish weighing %d lbs.", PlayerInfo[playerid][pFish1]);
    }
    if(PlayerInfo[playerid][pFishName1] == 3)
    {
        format(string, sizeof(string), "Slot 1: Angelfish weighing %d lbs.", PlayerInfo[playerid][pFish1]);
    }
    if(PlayerInfo[playerid][pFishName1] == 4)
    {
        format(string, sizeof(string), "Slot 1: Catfish weighing %d lbs.", PlayerInfo[playerid][pFish1]);
    }
    if(PlayerInfo[playerid][pFishName1] == 5)
    {
        format(string, sizeof(string), "Slot 1: Dogfish weighing %d lbs.", PlayerInfo[playerid][pFish1]);
    }
    if(PlayerInfo[playerid][pFishName1] == 6)
    {
        format(string, sizeof(string), "Slot 1: Eel weighing %d lbs.", PlayerInfo[playerid][pFish1]);
    }
    if(PlayerInfo[playerid][pFishName2] == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Slot 2: Empty.");
    }
    if(PlayerInfo[playerid][pFishName2] == 1)
    {
        format(string, sizeof(string), "Slot 2: Shark weighing %d lbs.", PlayerInfo[playerid][pFish2]);
    }
    if(PlayerInfo[playerid][pFishName2] == 2)
    {
        format(string, sizeof(string), "Slot 2: Clownfish weighing %d lbs.", PlayerInfo[playerid][pFish2]);
    }
    if(PlayerInfo[playerid][pFishName2] == 3)
    {
        format(string, sizeof(string), "Slot 2: Angelfish weighing %d lbs.", PlayerInfo[playerid][pFish2]);
    }
    if(PlayerInfo[playerid][pFishName2] == 4)
    {
        format(string, sizeof(string), "Slot 2: Catfish weighing %d lbs.", PlayerInfo[playerid][pFish2]);
    }
    if(PlayerInfo[playerid][pFishName2] == 5)
    {
        format(string, sizeof(string), "Slot 2: Dogfish weighing %d lbs.", PlayerInfo[playerid][pFish2]);
    }
    if(PlayerInfo[playerid][pFishName2] == 6)
    {
        format(string, sizeof(string), "Slot 2: Eel weighing %d lbs.", PlayerInfo[playerid][pFish2]);
    }
    if(PlayerInfo[playerid][pFishName3] == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Slot 3: Empty.");
    }
    if(PlayerInfo[playerid][pFishName3] == 1)
    {
        format(string, sizeof(string), "Slot 3: Shark weighing %d lbs.", PlayerInfo[playerid][pFish3]);
    }
    if(PlayerInfo[playerid][pFishName3] == 2)
    {
        format(string, sizeof(string), "Slot 3: Clownfish weighing %d lbs.", PlayerInfo[playerid][pFish3]);
    }
    if(PlayerInfo[playerid][pFishName3] == 3)
    {
        format(string, sizeof(string), "Slot 3: Angelfish weighing %d lbs.", PlayerInfo[playerid][pFish3]);
    }
    if(PlayerInfo[playerid][pFishName3] == 4)
    {
        format(string, sizeof(string), "Slot 3: Catfish weighing %d lbs.", PlayerInfo[playerid][pFish3]);
    }
    if(PlayerInfo[playerid][pFishName3] == 5)
    {
        format(string, sizeof(string), "Slot 3: Dogfish weighing %d lbs.", PlayerInfo[playerid][pFish3]);
    }
    if(PlayerInfo[playerid][pFishName3] == 6)
    {
        format(string, sizeof(string), "Slot 3: Eel weighing %d lbs.", PlayerInfo[playerid][pFish3]);
    }
    if(PlayerInfo[playerid][pFishName4] == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Slot 4: Empty.");
    }
    if(PlayerInfo[playerid][pFishName4] == 1)
    {
        format(string, sizeof(string), "Slot 4: Shark weighing %d lbs.", PlayerInfo[playerid][pFish4]);
    }
    if(PlayerInfo[playerid][pFishName4] == 2)
    {
        format(string, sizeof(string), "Slot 4: Clownfish weighing %d lbs.", PlayerInfo[playerid][pFish4]);
    }
    if(PlayerInfo[playerid][pFishName4] == 3)
    {
        format(string, sizeof(string), "Slot 4: Angelfish weighing %d lbs.", PlayerInfo[playerid][pFish4]);
    }
    if(PlayerInfo[playerid][pFishName4] == 4)
    {
        format(string, sizeof(string), "Slot 4: Catfish weighing %d lbs.", PlayerInfo[playerid][pFish4]);
    }
    if(PlayerInfo[playerid][pFishName4] == 5)
    {
        format(string, sizeof(string), "Slot 4: Dogfish weighing %d lbs.", PlayerInfo[playerid][pFish4]);
    }
    if(PlayerInfo[playerid][pFishName4] == 6)
    {
        format(string, sizeof(string), "Slot 4: Eel weighing %d lbs.", PlayerInfo[playerid][pFish4]);
    }
    if(PlayerInfo[playerid][pFishName5] == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Slot 5: Empty.");
    }
    if(PlayerInfo[playerid][pFishName5] == 1)
    {
        format(string, sizeof(string), "Slot 5: Shark weighing %d lbs.", PlayerInfo[playerid][pFish5]);
    }
    if(PlayerInfo[playerid][pFishName5] == 2)
    {
        format(string, sizeof(string), "Slot 5: Clownfish weighing %d lbs.", PlayerInfo[playerid][pFish5]);
    }
    if(PlayerInfo[playerid][pFishName5] == 3)
    {
        format(string, sizeof(string), "Slot 5: Angelfish weighing %d lbs.", PlayerInfo[playerid][pFish5]);
    }
    if(PlayerInfo[playerid][pFishName5] == 4)
    {
        format(string, sizeof(string), "Slot 5: Catfish weighing %d lbs.", PlayerInfo[playerid][pFish5]);
    }
    if(PlayerInfo[playerid][pFishName5] == 5)
    {
        format(string, sizeof(string), "Slot 5: Dogfish weighing %d lbs.", PlayerInfo[playerid][pFish5]);
    }
    if(PlayerInfo[playerid][pFishName5] == 6)
    {
        format(string, sizeof(string), "Slot 5: Eel weighing %d lbs.", PlayerInfo[playerid][pFish5]);
    }
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Bait{FFFFFF}: %d "Grey"- "Orange"Rod Durability{FFFFFF}: %d%", PlayerInfo[playerid][pBait], PlayerInfo[playerid][pRodDurab]);
    SendClientMessage(playerid, COLOR_ORANGE, string);
    return 1;
}
But they don't seem to be in ascending order and slot 1 doesn't show:

Reply


Messages In This Thread
What's wrong with my /fishes command? - by AphexCCFC - 08.02.2013, 18:57
Re: What's wrong with my /fishes command? - by LarzI - 08.02.2013, 18:59
Re: What's wrong with my /fishes command? - by AphexCCFC - 08.02.2013, 19:12
Re: What's wrong with my /fishes command? - by LarzI - 08.02.2013, 19:22
Re: What's wrong with my /fishes command? - by AphexCCFC - 08.02.2013, 19:23
Re: What's wrong with my /fishes command? - by AphexCCFC - 08.02.2013, 19:28
Re: What's wrong with my /fishes command? - by LarzI - 08.02.2013, 19:28
Re: What's wrong with my /fishes command? - by AphexCCFC - 08.02.2013, 19:38
Re: What's wrong with my /fishes command? - by LarzI - 08.02.2013, 19:52
Re: What's wrong with my /fishes command? - by AphexCCFC - 08.02.2013, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)