SA-MP Forums Archive
No errors,no warnings but dialogs dont work IG - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: No errors,no warnings but dialogs dont work IG (/showthread.php?tid=271404)



No errors,no warnings but dialogs dont work IG - JackT - 24.07.2011

Ive compiled the script successfully but ingame the dialog doesnt show:

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == GWpick)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Pur chaseable Weapons","Melees\nHandHelds\nMachineguns\nAssault\ nRifles\nHeavy Artilery\nThrowable","Select","Cancel");
}
else if(pickupid == VWpick)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Pur chaseable Weapons","Melees\nHandHelds\nMachineguns\nAssault\ nRifles\nHeavy Artilery\nThrowable","Select","Cancel");
}
else if(pickupid == BWpick)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Pur chaseable Weapons","Melees\nHandHelds\nMachineguns\nAssault\ nRifles\nHeavy Artilery\nThrowable","Select","Cancel");
}
else if(pickupid == AWpick)
{
ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Pur chaseable Weapons","Melees\nHandHelds\nShotguns\nMachineguns \nAssault\nRifles\nHeavy Artilery\nThrowable","Select","Cancel");
}
return 1;
}


Re: No errors,no warnings but dialogs dont work IG - MadeMan - 24.07.2011

Show how you create pickups.


Re: No errors,no warnings but dialogs dont work IG - JackT - 24.07.2011

At the top...
new GWpick;
new VWpick;
new BWpick;
new AWpick;

Under OnGameModeInIt
GWpick = CreatePickup(1254,1,2497.2744,-1687.0789,13.4819,-1);
VWpick = CreatePickup(1254,1,2459.6807,-1290.2125,24.0000,-1);
BWpick = CreatePickup(1254,1,1995.7780,-1115.8187,26.7737,-1);
AWpick = CreatePickup(1254,1,1877.9850,-2015.4502,13.5469,-1);


Re: No errors,no warnings but dialogs dont work IG - MadeMan - 24.07.2011

Is it a filterscript?


Re: No errors,no warnings but dialogs dont work IG - JackT - 24.07.2011

Its in the Gamemode


Re: No errors,no warnings but dialogs dont work IG - MadeMan - 24.07.2011

You have some spaces that shouldn't be.

Try this:

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == GWpick)
    {
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Purchaseable Weapons","Melees\nHandHelds\nMachineguns\nAssault\nRifles\nHeavy Artilery\nThrowable","Select","Cancel");
    }
    else if(pickupid == VWpick)
    {
        ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Purchaseable Weapons","Melees\nHandHelds\nMachineguns\nAssault\nRifles\nHeavy Artilery\nThrowable","Select","Cancel");
    }
    else if(pickupid == BWpick)
    {
        ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Purchaseable Weapons","Melees\nHandHelds\nMachineguns\nAssault\nRifles\nHeavy Artilery\nThrowable","Select","Cancel");
    }
    else if(pickupid == AWpick)
    {
        ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Purchaseable Weapons","Melees\nHandHelds\nShotguns\nMachineguns\nAssault\nRifles\nHeavy Artilery\nThrowable","Select","Cancel");
    }
    return 1;
}



Re: No errors,no warnings but dialogs dont work IG - JackT - 24.07.2011

thank you