onplayerpickuppickup conflicts
#1

With other pickups. What did i do wrong?

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == deathpickup123[playerid])
	{
		new Random = random(8001);
		new string[70];
		DestroyPickup(deathpickup123[playerid]);
    	       format(string, sizeof(string), "$%d Money got from a death Player!", Random);
    	       SendClientMessageToAll(COLOR_RED, string);
    	       GivePlayerMoney(playerid,Random);
	        KillTimer(killtimer1);
	        Delete3DTextLabel(death3d[playerid]);
		return 1;
	}
	return 1;
}
Reply
#2

What, kid?

May we please know what the problem is, there fore we can help you.
Reply
#3

"Kid" issn't the right name for me. But; When i walk in the pickup, it does the action what a other pickup should do in a other script. Thanks anyhow.
Reply
#4

Quote:
Originally Posted by BloodGuy
Посмотреть сообщение
"Kid" issn't the right name for me. But; When i walk in the pickup, it does the action what a other pickup should do in a other script. Thanks anyhow.
Check your pickupname = CreatePickup(....);

I had this problem and it really pissed me off because it wrecked my whole game for a few minutes lol, but then I just realized I had duplicate CreatePickups that had the same X, Y, Z as another one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)