SA-MP Forums Archive
Pickup Problem... - 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: Pickup Problem... (/showthread.php?tid=116755)



Pickup Problem... - sean5874 - 30.12.2009

Hello,
I try to make an license system, and to start the exam, you need to pick up a pickup in front of the Driving School. The problem is that the pickup don't spawn on the place that I gave it. Below you see the code of the pickup:
Код:
drivingschool = CreatePickup(1239, 23, -2031.0737, -100.4808, 35.1641, -1);
	
	DSmenu = CreateMenu("Driving School - Exam:",1,200,200,400,35);
	AddMenuItem(DSmenu, 0, "Try driving exam");
	AddMenuItem(DSmenu, 0, "Practice for exam");
	AddMenuItem(DSmenu, 0, "Cancel");
	return 1;
}
Can someone tell me why it's not working?
Greets,'
sean5874

I wish all people here a happy newyear!


Re: Pickup Problem... - TheChaoz - 30.12.2009

i think it's because of the virtual world u have asing to the pickup

thy this
pawn Код:
drivingschool = CreatePickup(1239, 23, -2031.0737, -100.4808, 35.1641, 1);



Re: Pickup Problem... - Correlli - 30.12.2009

Quote:
Originally Posted by the_chaoz
i think it's because of the virtual world u have asing to the pickup

thy this
pawn Код:
drivingschool = CreatePickup(1239, 23, -2031.0737, -100.4808, 35.1641, 1);
That pickup will be visible in virtul world with ID 1 only.


Re: Pickup Problem... - sean5874 - 30.12.2009

Quote:

i think it's because of the virtual world u have asing to the pickup

thy this

PAWN Code:
drivingschool = CreatePickup(1239, 23, -2031.0737, -100.4808, 35.1641, 1);

Quote:

i think it's because of the virtual world u have asing to the pickup

thy this

PAWN Code:
drivingschool = CreatePickup(1239, 23, -2031.0737, -100.4808, 35.1641, 1);

Thanks for the tips, but unfortunately the problem isn't solved with this, what could i do?


Re: Pickup Problem... - Oxside - 30.12.2009

you should make it to the id of the virtual world it in.
Outside: = 0


Re: Pickup Problem... - sean5874 - 30.12.2009

Quote:
Originally Posted by Oxside
you should make it to the id of the virtual world it in.
Outside: = 0
It still don't work...


Re: Pickup Problem... - TheChaoz - 30.12.2009

are u sure that the cordenates are Ok

if they are ok sorry but i can't help u :S
didn't find any problem with the code


Re: Pickup Problem... - Oxside - 30.12.2009

are you sure you changed CreatePickup(1239, 23, -2031.0737, -100.4808, 35.1641, THIS);
to the corrent virtual world?


Re: Pickup Problem... - M4S7ERMIND - 30.12.2009

Quote:
Originally Posted by Oxside
are you sure you changed CreatePickup(1239, 23, -2031.0737, -100.4808, 35.1641, THIS);
to the corrent virtual world?
He has -1 there in his first post, which means its visible in all virtual worlds.


Re: Pickup Problem... - Peep - 13.01.2010

i have same problem. in one place 2 pickups dont work but all anothers work.