27.08.2011, 19:22
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:
/curse that:
i hope it helps!
offtopic: i <3 to edit! and somtimes i fail - lol sry, removed 2x the sig now. space restored ^^
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]
Code:
startworkpickup==traviswork1==traviswork2==0;
offtopic: i <3 to edit! and somtimes i fail - lol sry, removed 2x the sig now. space restored ^^