Pickup (Help!) - 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: Pickup (Help!) (
/showthread.php?tid=150489)
Pickup (Help!) -
vidmas5 - 26.05.2010
Ok i'm creating a pickup and i have problem
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == icon) // Pickup.
{
//Doing
SetPlayerHealth(playerid,1);
}
else if (pickupid ==)
{
// next pickups create here
}
return 1;
whats the problem?? Plz Help
C:\Users\user\Desktop\New Folder (3)\Los Santos Gang Wars\gamemodes\Studija.pwn(955) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
server is Freeroam
Re: Pickup (Help!) -
Andy_McKinley - 26.05.2010
I think you put it under OnGameModeInit, don't!
Re: Pickup (Help!) -
Jakku - 26.05.2010
pawn Код:
//Above on gamemodeinit
new icon;
//Under ongamemodeinit
icon = CreatePickup(ID,type,x,y,z);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == icon) {
//Something here
}
//if (pickupid == something_else) {
//Something else here
//}
}