Scary pickup bug... -
sciman001 - 10.12.2011
Alrighty, I made a pickup spawn at the person that got killed's position and it spawns at the killers position. EX:
Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
kcP[playerid] = CreatePickup(1247, 19, x, y, z, 1);
And it spawns at the KILLERS position. I didnt set playerid = to killerid in my script so i know its a glitch of some sort. Any ideas?
Re: Scary pickup bug... -
sciman001 - 10.12.2011
I still cant figure this out... Any ideas?
Re: Scary pickup bug... -
sciman001 - 10.12.2011
Anyone?
This forum requires that you wait 120 seconds between posts. Please try again in 100 seconds.
Re: Scary pickup bug... -
Joshb93 - 10.12.2011
You have this under OnPlayerDeath correct?
Re: Scary pickup bug... -
sciman001 - 10.12.2011
Yes sir.
Re: Scary pickup bug... -
Joshb93 - 10.12.2011
Im a decent scripter, but i do not see anything wrong with this code..
Can a more advanced scripter please look at this, as i dont see the problem
Re: Scary pickup bug... -
MP2 - 10.12.2011
There's nothing wrong with the code.
Re: Scary pickup bug... -
sciman001 - 10.12.2011
So why is it doing this? Server glitch? I really wanna figure this out...
EDIT: Come to 24.111.46.103:7777 to see it. And chat about it. And stuffs.
Re: Scary pickup bug... -
Babul - 10.12.2011
is that all your code in OPD()? wll, include the part for creating the pickup into a stock, then let it get called from inside the OPD(). then add a CMD:cp to call the same stock, add a SendClientMessageToAll() with the coords. at least this should help at finding the coords, they must be ok to assume a bug...
Re: Scary pickup bug... -
sciman001 - 10.12.2011
pawn Код:
stock CP(playerid)
{
new Float:xx, Float:yx, Float:zx, str[64];
GetPlayerPos(playerid, xx, yx, zx);
kcP[playerid] = CreatePickup(1247, 19, xx, yx, zx, 1);
format(str, sizeof(str), "x:%0.3f y:%0.2f z%0.2f", x, y, z);
SendClientMessageToAll(-1, str);
return 1;
}
Come see it at 24.111.46.103:7777 and btw i havent tested that yet so..
EDIT: Thats not what u meant?