Don't see pickups in game:S
#1

Код:
#include <a_samp>
 new mypickup;
 new mypickup1;
public OnGameModeInit()
{
 mypickup = CreatePickup(362, 2, 115.2829, 377.8892, 3.4451, 0);
 mypickup1 = CreatePickup(363, 2, -2473.0024, 1548.1436, 33.2273, 0);
 return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == mypickup)
{ 
GivePlayerWeapon(playerid, 38, 2000);
}
  if (pickupid == mypickup1)
{ 
GivePlayerWeapon(playerid, 39, 25);
}
}
When I'm going to both spots I don't see the weapons, I don't have a clue what I've done wrong. Because the compiler isn't giving any errors or warnings.
Reply
#2

pawn Код:
public OnGameModeInit()
{
 mypickup = CreatePickup(362, 2, 115.2829, 377.8892, 3.4451, -1);
 mypickup1 = CreatePickup(363, 2, -2473.0024, 1548.1436, 33.2273, -1);
 return 1;
}
Try doing that changin the last ones to -1.

[Doppeyy
Reply
#3

I've fixed it I changed it to
Код:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new mypickup,mypickup1;
public OnFilterScriptInit()
{
 mypickup = CreatePickup(362, 2,112.5344,382.1805,3.4379, -1);
 mypickup1 = CreatePickup(363, 2, -2473.0024, 1548.1436, 33.2273, -1);
 return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
#else
#endif
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == mypickup)
{ 
GivePlayerWeapon(playerid, 38, 2000);
}
  if (pickupid == mypickup1)
{ 
  GivePlayerWeapon(playerid, 39, 25);
}
  return 1;
}
Reply
#4

And did it work for you or not ?

[Doppeyy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)