SA-MP Forums Archive
Help.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help.. (/showthread.php?tid=352105)



Help.. - dundolina - 18.06.2012

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.


Re: Help.. - dundolina - 18.06.2012

Help me please!


Re: Help.. - dundolina - 20.06.2012

My dialog bug,please help me!


Re: Help.. - tyler12 - 20.06.2012

change dialog id's


Re: Help.. - dundolina - 20.06.2012

Where is this dialog id's?


Re: Help.. - Skaizo - 20.06.2012

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;
}



Re: Help.. - dundolina - 20.06.2012

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.