Adding Pickups!
#1

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?
Reply
#2

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
Reply
#3

This will help you;
https://sampwiki.blast.hk/wiki/AddStaticPickup
Reply
#4

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.
Reply
#5

pawn Код:
AddStaticPickup(1242, 2, 397.987701, 2540.030273, 19.821136, 0);
Reply
#6

thanks guys it helps me. all 4 answers are correct ! +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)