SA-MP Forums Archive
OnPlayerPickUpPickup - 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: OnPlayerPickUpPickup (/showthread.php?tid=141933)



OnPlayerPickUpPickup - xLowrider - 16.04.2010

wat
When i compile
Код:
E:\Country DM\gamemodes\lvdm.pwn(219) : warning 204: symbol is assigned a value that is never used: "iName" << Doesn't matter
E:\Country DM\gamemodes\lvdm.pwn(218) : warning 204: symbol is assigned a value that is never used: "pName" << Doesn't matter
E:\Country DM\gamemodes\lvdm.pwn(217) : warning 204: symbol is assigned a value that is never used: "gMessage" << Doesn't matter
E:\Country DM\gamemodes\lvdm.pwn(216) : warning 204: symbol is assigned a value that is never used: "Message" << Doesn't matter
E:\Country DM\gamemodes\lvdm.pwn(793) : warning 202: number of arguments does not match definition << MATTERS
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
Okay so i get that and on line 793
Код:
san = CreatePickup(1239, 1, 755.0755,-1371.1189,13.5185, -1);// Entry Point
And for my OnPlayerPickUpPickup
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{

  if (pickupid == san)
  {
    GameTextForPlayer(playerid, "type ~r~/enter to go inside", 5000, 3);
  }


  return 1;
}
wat, i'm getting some random warning..
i'm defining this san thing too

new san;


Re: OnPlayerPickUpPickup - [WF]Demon - 16.04.2010

try removing the "-1" tell me what that gives you


Re: OnPlayerPickUpPickup - Torran - 16.04.2010

Adding a virtualworld seems to bring that warning,
Just remove the , -1


Re: OnPlayerPickUpPickup - Thrarod - 16.04.2010

No -1 makes pickup shown in all virtual worlds


Re: OnPlayerPickUpPickup - Torran - 16.04.2010

Quote:
Originally Posted by Thrarod
No -1 makes pickup shown in all virtual worlds
If you have a CreatePickup with virtualworld in it, It brings that warning,


Re: OnPlayerPickUpPickup - xLowrider - 16.04.2010

yeah i -1 and nothing


Re: OnPlayerPickUpPickup - xLowrider - 16.04.2010

anyone?


Re: OnPlayerPickUpPickup - Torran - 16.04.2010

Remove the -1

san = CreatePickup(1239, 1, 755.0755,-1371.1189,13.5185);


Re: OnPlayerPickUpPickup - Mikep. - 16.04.2010

Make sure you have the 0.3 includes.


Re: OnPlayerPickUpPickup - Scenario - 16.04.2010

Remove the -1 that will solve the problem... If you want to add the virtualworld's than use a streamer...