24.07.2011, 11:56
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;
}
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;
}