Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
under gamemode init
mypickup = CreatePickup(id, type, x, y, z);
under public OnPlayerPickupPickup(playerid, pickupid)
{
if (pickupid == mypickup)
SendClientMessage(playerid, COLOR_WHITE, "message");
}
Posts: 321
Threads: 84
Joined: Apr 2008
Reputation:
0
I don't have a OnPlayerPickupPickup in my script?
Posts: 321
Threads: 84
Joined: Apr 2008
Reputation:
0
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(7285) : error 017: undefined symbol "mypickup"
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(20971) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickupPickup")
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(20973) : error 017: undefined symbol "mypickup"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Posts: 321
Threads: 84
Joined: Apr 2008
Reputation:
0
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(20972) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickupPickup")
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(20975) : warning 219: local variable "mypickup" shadows a variable at a preceding level
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(20975) : error 017: undefined symbol "id"
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(7286) : warning 204: symbol is assigned a value that is never used: "mypickup"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Posts: 20
Threads: 5
Joined: Apr 2009
Reputation:
0
dont just copy from everyone, change any needed things like "pickup" wich is "mypickup" in your script lol
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
Notice the typing:
public OnPlayerPickUpPickup (playerid, pickupid)
also, if you already use something for "mypickup", just rename it