SA-MP Forums Archive
somekinda wierd bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: somekinda wierd bug (/showthread.php?tid=187003)



somekinda wierd bug - OldDirtyBastard - 31.10.2010

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?


Re: somekinda wierd bug - Mike_Peterson - 31.10.2010

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


Re: somekinda wierd bug - admantis - 31.10.2010

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.