Dialog + Loop problem
#1

Hello, yes, it's me again
I got another problem in my ServerShop script, and I can't figure out how to fix it...
anyways here's code:
pawn Код:
if ( !strcmp( "/servershop", cmdtext, true, 11 ) )
    {
        for(new i; i<sizeof ServerShop ; i++)
        {
            if(ServerShop[i][shop_unlocked][playerid] == 1)
                format(string, sizeof(string), "{00FF00}%s \n\t{00FF00}Already Bought\n",ServerShop[i][shop_name], ServerShop[i][shop_costmoney], ServerShop[i][shop_costscore]);
            else
                format(string, sizeof(string), "{FFFFFF}%s \n\t{FFFFFF}%i Money\n\t{FFFFFF}%i Score\n",ServerShop[i][shop_name], ServerShop[i][shop_costmoney], ServerShop[i][shop_costscore]);
        }
        ShowPlayerDialog(playerid,72,DIALOG_STYLE_LIST,"{E4FF47}Server Shop", string ,"Select", "Cancel");
       
        return 1;
    }
ok so what this should do is it should show all the shop items that are unlocked green and the not unlocked white.
When I do this with SendClientMessage(...,...,string)
it works
but when I do it with a dialog, it only shows one shop item...
I have a total of 10 shop items
rep plus for helper
Reply


Messages In This Thread
Dialog + Loop problem - by knackworst - 15.10.2011, 14:01
Re: Dialog + Loop problem - by Josma_cmd - 15.10.2011, 14:07
Re: Dialog + Loop problem - by knackworst - 15.10.2011, 14:12
AW: Dialog + Loop problem - by Nero_3D - 15.10.2011, 15:27
Re: Dialog + Loop problem - by knackworst - 15.10.2011, 15:41
AW: Dialog + Loop problem - by Nero_3D - 15.10.2011, 15:57
Re: Dialog + Loop problem - by knackworst - 15.10.2011, 16:02
AW: Dialog + Loop problem - by Nero_3D - 15.10.2011, 16:41
Re: Dialog + Loop problem - by knackworst - 15.10.2011, 16:56
AW: Re: Dialog + Loop problem - by Nero_3D - 15.10.2011, 17:33

Forum Jump:


Users browsing this thread: 2 Guest(s)