Jump to content

Question

Posted

Cum fac sa stearga aceasta functie numai anumite obiecte nu tot!

[pawn]    public OnPlayerPickUpPickup ( playerid , pickupid )

    {

      DestroyPickup(pickupid);

      return 1;

    }[/pawn]

Eu am acel sistem cand te omoara cineva iti ia armele... SI daca ma duc la o casa in pickup il sterge! cum as aputea face sa stearga decat armele?

Mi sa spus sa fac asa:

[pawn]public OnPlayerPickup ( playerid , pickupid )

{

  if( pickupid == WeapPick[ playerid ] )

  {

      DestroyPickup( WeapPick[ playerid ] );

  }

  return 1;

}[/pawn]

dupa ce am pus imi da!

D:\sasa.pwn(34) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickup")
D:\sasa.pwn(36) : error 017: undefined symbol "WeapPick"
D:\sasa.pwn(36) : warning 215: expression has no effect
D:\sasa.pwn(36) : error 001: expected token: ";", but found "]"
D:\sasa.pwn(36) : error 029: invalid expression, assumed zero
D:\sasa.pwn(36) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

34: public OnPlayerPickup ( playerid , pickupid )
36: if( pickupid == WeapPick[ playerid ] )

si la arme sa fac  variabila gen WeapPick[ playerid ] = CreatePickup(...);

ProfesionalGaming Community

www.pgc-zone.tk

Let`ss goo PgC

1 answer to this question

Recommended Posts

Posted

in primul rand...este public OnPlayerPickUpPickup(playerid, pickupid) in al 2-lea rand...posteaza tot ce apartine de WeapPick

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.