Problem with menu.
#1

Hey guys, So anyway im working on a cops and robbers server. Im working on a menu, The problem is.... This is like my first menu without attempting to get help but i don't know the problem to one thing... For e.g Im making a menu so when you spawn you get a menu that pops up and lets you choose a skin ( cop, robber
so like

pawn Код:
new Skins[] = {
280,
281,
299,
293
};

case 0:
            {
                for( ; ; )
                {
                    SelectCharPlace[playerid]++;
                    if(0 <= SelectCharPlace[playerid] < sizeof(Skins))
                    {
                        ChosenSkin[playerid] = Skins[SelectCharPlace[playerid]];
                        break;
                    }
                    else if(ChosenSkin[playerid] == 280); // I want to make it so that, Each skin i choose will pop up for e.g = [SYSTEM]: Police Officer / [SYSTEM]: Criminal... but when i attempted to do that, I used a format first then sendclientmessage, and i had a option of Next Skin and first skin - No txt, Second - 2000000lines of [SYSTEM]: Police Officer, then my menu disapears and crashes my game any ideas :P?
                    {
                        SendClientMessage(playerid, COLOR_LIME,"Test.");
                    }
                    else
                    {
                        SelectCharPlace[playerid] = -1;
                    }
                }
                SetPlayerSkin(playerid, ChosenSkin[playerid]);
                ShowMenuForPlayer(Current, playerid);
                TogglePlayerControllable(playerid, 0);
            }
Reply
#2

Use Dialog
https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog
https://sampwiki.blast.hk/wiki/Dialog
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#3

I don't want to use Dialog for it. And im aware how to use dialog thanks.
Reply
#4

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)