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



Help With OnPlayerPickUpPickup - dragger5656 - 17.04.2009

i got one error, dont know whats wrong with it
Код:
C:\Documents and Settings\Tony\Desktop\ME\samp02Xserverr.win32\lvdm.pwn(1201) : error 010: invalid function or declaration
This what i have done
Код:
public OnPlayerPickUpPickup(playerid, 1239)
{
	if (1239 == infoicon)
	{
 		SendClientMessage(playerid, COLOR_WHITE, "/enterA to enter Agent's House"); // Message the player
	}
	return 1;
}



Re: Help With OnPlayerPickUpPickup - Joe Staff - 17.04.2009

OnPlayerPickUpPickup(playerid, 1239)

should be

OnPlayerPickUpPickup(playerid, pickupid)


Re: Help With OnPlayerPickUpPickup - dragger5656 - 17.04.2009

Thx, aint i a n00b