Posts: 1,648
Threads: 482
Joined: Jun 2010
How can I save bullet positions? Not to any file or mysql or anything, but I mean in just a variable temporarily and then delete them all after with a command?
I know it's with this:
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
But I just want to create a label on top of the bullet location, How can I save it temporarily?
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
You ask for to much help... Go learn to do stuff on your own. And plus this is so simple to do, you don't even bother to read the wiki witch tells you what you need to know, its just case of reading it. Even if someone helps you, you just say thanks, like as the helpers are your slaves, I suggest you learn on your own and you will succeed.
fX The X coordinate that the shot hit.
fY The Y coordinate that the shot hit.
fZ The Z coordinate that the shot hit.
New Float:BulletX[MAX_PLAYERS];
New Float:BulletY[MAX_PLAYERS];
New Float:BulletZ[MAX_PLAYERS];
BulletX[playerid] = fX;
BulletY[playerid] = fY;
BulletZ[playerid] = fZ;
Posts: 1,648
Threads: 482
Joined: Jun 2010
'You ask for too much help' - That may be the most ridiculous statement I've ever heard. I have only been scripting 9 months, I'm only aware of how to load it from MySQL as that's where I usually get ID's from. I think you'll find I PM the people who have helped me after, saying a personal thank you and I in-fact made this post just last week:
https://sampforum.blast.hk/showthread.php?tid=501737 Thanking a player.
I am an amateur scripter, I don't pretend to know what I don't and I certainly do not bring judgement to other people I do not know.
I appreciate that, but that will over-write the CO-ORDS.
I need to save EACH bullets location, That's the issue I don't know how to do, like. When you CreateVehicle the vehicleid = CreateVehicle,
What is the bullet created? Do I have to do MAX_BULLETS
Posts: 1,648
Threads: 482
Joined: Jun 2010
That link showed me nothing. I created the account LONG before I actually began scripting, infact someone gave me this account.
I do call myself an amateur scripter simply because time has no meaning towards your level of ability. None at all. Know why? Cos everyone in the world has different learning abilities. You don't know me, You don't know if I am mentally challenged, you don't know if I have any issues in personal life, you don't know if I have suffered brain trauma. You base all of your opinions on forum posts upon a person you have never met or even know the age, gender, sex or anything. Once I post something, when I understand it, I learn it. I know how to do the majority of things in scripting, scratch that, a lot - all I need to and if I don't know I ask. Then I learn.
NO-ONE IS OBLIGED TO REPLY TO ANY POSTS ON THE FORUMS, REGARDLESS OF SECTION.
“Never look down on anybody unless you're helping them up.”
@LocMax
Thanks for that.
I'm just looking for the location to be saved, the co-ords. I plan to add a text label saying 'BULLET' to each one, I'm just not entirely sure as of how to save EVERY fired bullet's location?
Posts: 1,648
Threads: 482
Joined: Jun 2010
Thank you, Patrick, I really appreciate the comment + time it took to add that.
I understand that, but won't each bullet over-write the last one? Saving only one location in the end?
EDIT: @LocMax
I just seen your edit, AHH I see! It's actually more simple than I thought, but how do I delete the labels/locations?