Help with Argument 2
#1

Fixed
Reply
#2

pawn Код:
if(dialogid == DIALOG_SENJATA)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: ShowPlayerDialog(playerid, DIALOG_SENJATA, DIALOG_STYLE_LIST, "Senjata", "-=Pistol=-\nDesert Eagle ($2000)\nS.Pistol\nColt 45\n{-=Shotgun=-\nSawn-Off ($4000)\nShotgun\nSpas\n-=Sub-Mechinegun=-\nMP5\nTec9\nUzi\n-=Assault=-\nM4\nAk47", "Beli", "Batal");
                case 1:
                {
                    if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak Cukup bro, miskin amat lu"); // Line  80
                    GivePlayerMoney(playerid, -2000);
                    GivePlayerWeapon(playerid, 24, 214);
                }
                case 2:
                {
                    if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
                    GivePlayerMoney(playerid, -2000);
                    GivePlayerWeapon(playerid, 23, 214);
                }
                case 3:
                {
                    if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
                    GivePlayerMoney(playerid, -2000);
                    GivePlayerWeapon(playerid, 22, 214);
                }
                case 4: ShowPlayerDialog(playerid, DIALOG_SENJATA, DIALOG_STYLE_LIST, "Senjata", "-=Pistol=-\nDesert Eagle ($2000)\nS.Pistol\nColt 45\n{-=Shotgun=-\nSawn-Off ($4000)\nShotgun\nSpas\n-=Sub-Mechinegun=-\nMP5\nTec9\nUzi\n-=Assault=-\nM4\nAk47", "Beli", "Batal");
                case 5:
                {
                    if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
                    GivePlayerMoney(playerid, -4000);
                    GivePlayerWeapon(playerid, 26, 214);
                }
                case 6:
                {
                    if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
                    GivePlayerMoney(playerid, -4000);
                    GivePlayerWeapon(playerid, 25, 214);
                }
                case 7:
                {
                    if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
                    GivePlayerMoney(playerid, -4000);
                    GivePlayerWeapon(playerid, 27, 214);
                }
            }
        }
        return 1;
    }
You were missing 'case 7'.

EDIT: If that doesn't fix it, make sure your 'COLOR_RED' is defined as '0xFF0000FF'.
pawn Код:
#define COLOR_RED 0xFF0000FF
At the top of your script ^, replace "{FF0000}" with 0xFF0000FF.
Reply
#3

Thanks you BenzoAMG its fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)