Help..
#1

I have a problem with dialogues. On 2 script as I click on say "Upgrade of the house" my entire menu disappears .. How do I fix it?

I delete this on my gamemode and have problem : {"Las Venturas Bloods", 0xADAD303A, 0, 0, 0, 0, 0, "Gangsta","OG","Double OG","Left Hand","Right Hand","Boss"},

D:\games\Скинове О.О\Orignalniq mod\Без гангове\gamemodes\gangwars.pwn(359) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Help me please!
Reply
#3

My dialog bug,please help me!
Reply
#4

change dialog id's
Reply
#5

Where is this dialog id's?
Reply
#6

https://sampwiki.blast.hk/wiki/Dialog
this is styles
why you change into ShowPlayerDialog?
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
dialogid is An ID to assign this dialog to, so responses can be processed. Max dialogid is 32767. Using negative values will close any open dialog.
like this
pawn Код:
//at top of script
#define OMG 1
if (strcmp("/dialoglas", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, OMG, DIALOG_STYLE_LIST, "Las Venturas Bloods", "Gangsta\nOG\nDouble OG\nLeft Hand\nRight Hand\nBoss", "Ok", "Close");
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == OMG)
    {
        if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GREEN, "this player is not conected!");
        {
            if(!response) return Kick(playerid);
            {
               switch(listitem)
               {
                   case 0:
                   {
                    //what you want
                   }
                   case 1:
                   {
                    // second what you want
                   }
                   case 2:
                   {
                    // ....
                   case 3:
                   {
                   //....
                   }
                   case 4:
                   {
                   //....
                   }
                   case 5:
                   {
                   //....
                   }
              }
           }
       }
    }
    return 1;
}
Reply
#7

OMFG.. When you click on a function of dialogue, the whole dialogue is removed instead of the function..

My second problem is this error that gives me in the gamemode..This is my error :

gangwars.pwn(359) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)