No errors,no warnings but dialogs dont work IG
#1

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;
}
Reply
#2

Show how you create pickups.
Reply
#3

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);
Reply
#4

Is it a filterscript?
Reply
#5

Its in the Gamemode
Reply
#6

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

thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)