Scary pickup bug...
#1

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

I still cant figure this out... Any ideas?
Reply
#3

Anyone?

This forum requires that you wait 120 seconds between posts. Please try again in 100 seconds.
Reply
#4

You have this under OnPlayerDeath correct?
Reply
#5

Yes sir.
Reply
#6

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

There's nothing wrong with the code.
Reply
#8

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)