SA-MP Forums Archive
Pickups Not Working Fine While They Are Scripted Perfect.. (+rep) - 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: Pickups Not Working Fine While They Are Scripted Perfect.. (+rep) (/showthread.php?tid=353128)



Pickups Not Working Fine While They Are Scripted Perfect.. (+rep) - FearLe$$ - 22.06.2012

Hi Guys, today i made a pickup shop to buy stuff like weapons and heal ur self it will be better and wont be abused..
so i made it perfectly fine..

Pickups:

PHP код:
    gunshop1 == CreatePickup(125412588.8369,-952.1486,81.4017);
    
gunshop2 == CreatePickup(12541653.4415,-542.7672,16.3281);
    
gunshop3 == CreatePickup(12541238.8975,-141.0027,1.5781);
    
gunshop4 == CreatePickup(12541, -1138.3076,-193.5470,14.1440);
    
gunshop5 == CreatePickup(12541, -1452.9106,411.5539,30.0859);
    
gunshop6 == CreatePickup(12541, -141.5376,1154.3433,19.7422);
    
gunshop7 == CreatePickup(12541610.9638,1068.9904,28.5518);
    
gunshop8 == CreatePickup(1254112503.1326,-2015.8593,13.5469);
    
gunshop9 == CreatePickup(125411990.5472,-1227.7065,20.4187);
    
gunshop10 == CreatePickup(125412487.6462,-1685.0797,13.5079); 
PHP код:
 if(pickupid == gunshop1ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop2ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop3ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop4ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop5ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop6ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop7ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop8ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop9ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel");
    if(
pickupid == gunshop10ShowPlayerDialog(playerid11DIALOG_STYLE_LIST"Shop""Weapons\nHealth - 10000$ \nArmour - 15000$""Select""Cancel"); 
and then the dialog but it aint working why so?!?

10 Warnings also
PHP код:
gamemodes\SAC.pwn(478) : warning 215expression has no effect
gamemodes
\SAC.pwn(479) : warning 215expression has no effect
gamemodes
\SAC.pwn(480) : warning 215expression has no effect
gamemodes
\SAC.pwn(481) : warning 215expression has no effect
gamemodes
\SAC.pwn(482) : warning 215expression has no effect
gamemodes
\SAC.pwn(483) : warning 215expression has no effect
gamemodes
\SAC.pwn(484) : warning 215expression has no effect
gamemodes
\SAC.pwn(485) : warning 215expression has no effect
gamemodes
\SAC.pwn(486) : warning 215expression has no effect
gamemodes
\SAC.pwn(487) : warning 215expression has no effect 



Re: Pickups Not Working Fine While They Are Scripted Perfect.. (+rep) - Jonny5 - 22.06.2012

perfect?

no,

pawn Код:
gunshop1 == CreatePickup(1254, 1, 2588.8369,-952.1486,81.4017);
//should be like
gunshop1 = CreatePickup(1254, 1, 2588.8369,-952.1486,81.4017,-1);
//just one equal sign for assignments.

//and you are using the same dialog id for every dialog
 ShowPlayerDialog(playerid, 11,
you where also missing the vworld param

im not even sure why i entered this topic.. oh well


Re: Pickups Not Working Fine While They Are Scripted Perfect.. (+rep) - FearLe$$ - 22.06.2012

//and you are using the same dialog id for every dialog

yes coz i need same @ all


Re: Pickups Not Working Fine While They Are Scripted Perfect.. (+rep) - newbienoob - 22.06.2012

pawn Код:
if(pickupid == gunshop....)
{
       ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Shop", "Weapons\nHealth - 10000$ \nArmour - 15000$", "Select", "Cancel");
       return 1;
}



Re: Pickups Not Working Fine While They Are Scripted Perfect.. (+rep) - FearLe$$ - 22.06.2012

again scripted it my self ..