Pickup keep respawning...
#5

double post 2/2:
nvm all that. i maybe found the bug. your script looks fine! its obvious that you added the FinishedTask variables to make SURE everything will work fine. good idea, BUT theres a little problem...

create a pickup:
BabulsPickup=Createblabla(). that BabulsPickup, when formatted in a "%d", could return 1, the first pickup by SAMP (its index).
now destroy my BabulsPickup...
Destroyblabla(BabulsPickup);
and create another one:
KnackworstPickup=Createblabla().
its index will be the SAME as the BabulsPickup, which got created earlier.
solution:
Code:
[pseudocode]
#define ProgressMissionStart=1;
#define ProgressMissionPassangerPickup=2;
#define ProgressMissionPassangerDeliver=3;
new PickupType[maxplayers];//create an array to store 1 of this values, pointed by each pickupid:

KnackworstPickup=Createblaba();
PickupType[KnackworstPickup]=ProgressMissionStart;

if(PickupType[KnackworstPickup]==ProgressMissionStart)
{blabla}

[/pseudocode]
/curse that:
Code:
startworkpickup==traviswork1==traviswork2==0;
i hope it helps!

offtopic: i <3 to edit! and somtimes i fail - lol sry, removed 2x the sig now. space restored ^^
Reply


Messages In This Thread
Pickup keep respawning... - by knackworst - 27.08.2011, 10:56
Re: Pickup keep respawning... - by =WoR=G4M3Ov3r - 27.08.2011, 11:06
Re: Pickup keep respawning... - by knackworst - 27.08.2011, 11:35
Re: Pickup keep respawning... - by Babul - 27.08.2011, 19:01
Re: Pickup keep respawning... - by Babul - 27.08.2011, 19:22
Re: Pickup keep respawning... - by knackworst - 27.08.2011, 19:34
Re: Pickup keep respawning... - by Babul - 27.08.2011, 20:09
Re: Pickup keep respawning... - by knackworst - 27.08.2011, 20:49
Re: Pickup keep respawning... - by knackworst - 28.08.2011, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)