Pickup (Help!)
#1

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

I think you put it under OnGameModeInit, don't!
Reply
#3

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
//}

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)