[HELP]Problems with death money
#8

Quote:
Originally Posted by DarK_TeaM PT
Код:
public OnPlayerDeath(playerid, killerid)
{
if(GetPlayerMoney(playerid) => 100)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -100);
}
else
{
new Money = GetPlayerMoney(playerid);
GivePlayerMoney(playerid, -Money);
SendClientMessage(playerid, 0xF60000AA, "You donґt have money enough so we removed all money you have...");
}
return 1;
}
i think this one is better :P

and fixed the problem
look at mine and

Quote:
Originally Posted by [HiC
TheKiller ]
pawn Код:
public OnPlayerDeath(playerid, killerid)
{
   GivePlayerMoney(playerid, 100);
   GivePlayerMoney(playerid, GetPlayerMoney(playerid) -100);
   return 1;
}
it is going only to give him 100 and remove 100?
Reply


Messages In This Thread
[HELP]Problems with death money - by Zafire2008 - 26.01.2010, 21:26
Re: [HELP]Problems with death money - by AlExAlExAlEx - 26.01.2010, 21:57
Re: [HELP]Problems with death money - by Zafire2008 - 26.01.2010, 21:59
Re: [HELP]Problems with death money - by actiwe - 26.01.2010, 22:00
Re: [HELP]Problems with death money - by Zafire2008 - 26.01.2010, 22:07
Re: [HELP]Problems with death money - by SlashPT - 26.01.2010, 22:08
Re: [HELP]Problems with death money - by [HiC]TheKiller - 26.01.2010, 22:08
Re: [HELP]Problems with death money - by SlashPT - 26.01.2010, 22:10
Re: [HELP]Problems with death money - by s0nic - 26.01.2010, 23:48
Re: [HELP]Problems with death money - by Zafire2008 - 26.01.2010, 23:55

Forum Jump:


Users browsing this thread: 1 Guest(s)