somekinda wierd bug
#1

Ive create couple pickups today, the thing is that my health pickup wont respawn
even i have it in the right format:
pawn Код:
health = CreatePickup(1240, 2, 2005.3463,1539.8365,17.6484, 0);
pawn Код:
if(pickupid == health) SetPlayerHealth(playerid, 100);
I even tryed to set the resapwn type to 3, so it respawns after death,
even that didnt worked....
I have also a armour pickup right next to it and it respawns fine,
but the most wierd thing is that when ive tested it in a blank script,
everything worked fine, respawned as i wanted it.. o_O
Does anybody know what could cause this?
Reply
#2

first of all i want to recommended to change ur variable name from "health" to sometihng else like "healthpickup"
and second of all i got no idea... i mostly think its the renaming... maybe u used health as a float before for GetPlayerHealth(playerid,health); for example... so just rename it
Reply
#3

Use pickup type 23, it's the best imo. Never despawns, it always stay here so I doubt it will give you any problems

This forum requires that you wait 120 seconds between posts. Please try again in 31 seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)