Adding Pickups! - 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)
+--- Thread: Adding Pickups! (
/showthread.php?tid=353074)
Adding Pickups! -
kbalor - 22.06.2012
Help with health and armor pickups! So i created my own pick ups using an editor ingame. I tried vehicles and buildings using AddStaticVehicle and CreateDynamicObject and they are both working..
But after adding
(For example)
Quote:
AddStaticPickup(1242, 397.987701, 2540.030273, 19.821136, 0.000000, 0.000000, 0.000000);//armor /aa
|
its says...
Quote:
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 213: tag mismatch
|
Anyone know how to make it right?
Re: Adding Pickups! -
Mr.1337 - 22.06.2012
Quote:
Originally Posted by kbalor
Help with health and armor pickups! So i created my own pick ups using an editor ingame. I tried vehicles and buildings using AddStaticVehicle and CreateDynamicObject and they are both working..
But after adding
(For example)
its says...
Anyone know how to make it right?
|
Try this
pawn Код:
AddStaticPickup(1242, 397.987701, 2540.030273, 19.821136, put here the VW);//armor /aa
Re: Adding Pickups! -
sanrock - 22.06.2012
This will help you;
https://sampwiki.blast.hk/wiki/AddStaticPickup
Re: Adding Pickups! -
Skaizo - 22.06.2012
you created 7 Parameters,but only 6 Parameters
pawn Код:
model The model of the pickup.
type The pickup spawn type, see further down this page.
Float:X The X coordinate to create the pickup at.
Float:Y The Y coordinate to create the pickup at.
Float:Z The Z coordinate to create the pickup at.
virtualworld The virtual world ID of the pickup. Use -1 to show the pickup in all worlds.
Re: Adding Pickups! -
[MM]RoXoR[FS] - 22.06.2012
pawn Код:
AddStaticPickup(1242, 2, 397.987701, 2540.030273, 19.821136, 0);
Re: Adding Pickups! -
kbalor - 22.06.2012
thanks guys it helps me. all 4 answers are correct
! +Rep