10.11.2009, 00:43
Quote:
|
Originally Posted by retart441
At least explain what he did wrong.
|
If it was to do with the giveplayercash scenario, then it'll be the "* 0.05"...
Some calculators act funny when you put in decimals into equations.
It is better to divide by a whole number to find the value, rather than multiplying by a decimal.
If it still gives errors, then you'll need to make the code different.
Код:
{
SendDeathMessage(killerid,playerid,reason);
GivePlayerMoney(killerid, 15000);
GivePlayerMoney(playerid, -(GetPlayerMoney(playerid) * 0.05));
GetPlayerPos(playerid,x,y,z);
cash = CreatePickup(1212,3,x,y,z);
cash2 = CreatePickup(1212,3,x+1,y,z);
cash3 = CreatePickup(1212,3,x-1,y,z);
cash4 = CreatePickup(1212,3,x,y+1,z);
cash5 = CreatePickup(1212,3,x,y-1,z);
}
and if this goes in your "OnplayerDeath" Then you'll have a problem somewhere along the lines of, that you've set these pickups, and then when another person dies, it's going to need to destroy those pickups.
If 2 people die at the same time, I'd say that somethings going to bug out somewhere. It looks inevitable that it is going to bug.
