[UNSOLVED]Pickup Not show
#1

i Create Some Pickups but they are dont show up i

My code

On top
pawn Код:
new gunshoppik1;
new gunshoppik2;

On OnGameModeInit()
pawn Код:
gunshoppik1 = AddStaticPickup(346,23,4120.5435,-713.6999,30.5056,-1);
gunshoppik2 = AddStaticPickup(346,23,4105.6196,-708.3956,30.5056,-1);
on OnPlayerPickUpPickup(playerid, pickupid)

pawn Код:
{
if (pickupid == gunshoppik1)
{
SetPlayerPos(playerid,0,0,0);//i dont make the coord's
}
if (pickupid == gunshoppik2)
{
SetPlayerPos(playerid,0,0,0);//i dont make the coord's
}
return 1;
}
Reply
#2

why you are not using only this:

pawn Код:
AddStaticPickup(346,23,4120.5435,-713.6999,30.5056,-1);
AddStaticPickup(346,23,4105.6196,-708.3956,30.5056,-1);
Reply
#3

Quote:
Originally Posted by Kinto
why you are not using only this:

pawn Код:
AddStaticPickup(346,23,4120.5435,-713.6999,30.5056,-1);
AddStaticPickup(346,23,4105.6196,-708.3956,30.5056,-1);
because after this i must make IsPlayerInRageOfPoint and.......where to put her
Reply
#4

use this then:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0,23,4105.6196,-708.3956,30.5056);
Reply
#5

Quote:
Originally Posted by Kinto
use this then:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0,23,4105.6196,-708.3956,30.5056);
i think at this but...wher to put her? in OnPlayerUpdate(playerid)?
Reply
#6

Its Copile with no erros Testing now
Reply
#7

Quote:
Originally Posted by Kinto
why you are not using only this:

pawn Код:
AddStaticPickup(346,23,4120.5435,-713.6999,30.5056,-1);
AddStaticPickup(346,23,4105.6196,-708.3956,30.5056,-1);
i'tryed now work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)