Update Pickup Problem
#1

Hi guys, just get a problem.
Код:
new pickup;
pickup  = CreatePickup(.....);
DestroyPickup(pickup);
pickup = CreatePickup(.....);
will creat two pickup.....
how to fix it?

I guess the problem is that CreatePickup is fater than DetroyPickup, like Kick faster than others.
Reply
#2

pawn Код:
new pickup[3]; // Max pick = 3
pickup[0]  = CreatePickup(.....); // 1
DestroyPickup(pickup);
pickup[1] = CreatePickup(.....); // 2
DestroyPickup(pickup[1]);
pickup[2] = CreatePickup(.....); // 3
DestroyPickup(pickup[2]);
You can make more if you want 10 pickup:
pawn Код:
new pickup[10]; // Max 10 pickup
Reply
#3

Use a timer then. For example using your code,

pawn Код:
new pickup;
pickup  = CreatePickup(.....);
DestroyPickup(pickup);
SetTimerEx("ReloadPickup", 2500, false, "d", pickup);
You'd need to also store the pickup information though to replicate it. See,
wiki.sa-mp.com/wiki/createpickup
Reply
#4

OH!!! Nice.
Thank you .
Reply
#5

No effect....
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)