OnPlayerPickUpPickup
#1

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

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

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

No -1 makes pickup shown in all virtual worlds
Reply
#5

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,
Reply
#6

yeah i -1 and nothing
Reply
#7

anyone?
Reply
#8

Remove the -1

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

Make sure you have the 0.3 includes.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)