How make with time gone pickup
#1

Hi i have variable of pickup it called
Код:
meatDrops
How need make it destroy if passed 20 seconds?
Reply
#2

set a 20 second timer when you create the pickup

Код:
SetTimer("Destroypickup", 20000, false) //creating 20 second timer 


forward Destroypickup();
public Destroypickup()
{
    DestroyPickup(meatDrops); // destroying pickup after 20 second
}
Reply
#3

Quote:
Originally Posted by lackmail
Посмотреть сообщение
set a 20 second timer when you create the pickup

Код:
SetTimer("Destroypickup", 20000, false) //creating 20 second timer 


forward Destroypickup();
public Destroypickup()
{
    DestroyPickup(meatDrops); // destroying pickup after 20 second
}
error 035: argument type mismatch (argument 1)
Line
DestroyPickup(meatDrops); // destroying pickup after 20 second
Reply
#4

Код:
new meatDrops;
not

Код:
new meatDrops[128];
Reply
#5

Quote:
Originally Posted by lackmail
Посмотреть сообщение
Код:
new meatDrops;
not

Код:
new meatDrops[128];
Well thanks fixed problem bat i use
Код:
forward Destroypickup(playerid);
public Destroypickup(playerid)
{
    DestroyPickup(meatDrops[playerid]); // destroying pickup after 20 second
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)