Function don't have effect
#1

how to convert this
Код:
 new ebill = (PlayerInfo[i][pBankMoney]/9000)*(PlayerInfo[i][pLevel]);
to
Код:
safegiveplayermoney
example:
Код:
SafeGivePlayerMoney(playerid, -500)* (PlayerInfo[playerid][pLevel]);
but this doesn't work
Reply
#2

Are you looking for this?
pawn Код:
stock SafeGivePlayerMoney(playerid, amount)
{
    PlayerInfo[playerid][pBankMoney] += amount;
    SetPlayerMoney(playerid, PlayerInfo[playerid][pBankMoney]);
    return 1;
}
Reply
#3

Quote:
Originally Posted by dominik523
Посмотреть сообщение
Are you looking for this?
pawn Код:
stock SafeGivePlayerMoney(playerid, amount)
{
    PlayerInfo[playerid][pBankMoney] += amount;
    SetPlayerMoney(playerid, PlayerInfo[playerid][pBankMoney]);
    return 1;
}
yes but * player level
Reply
#4

This?
pawn Код:
SafeGivePlayerMoney(playerid, -PlayerInfo[playerid][pLevel]*500);
Or maybe this?
pawn Код:
stock SafeGivePlayerMoney(playerid, amount)
{
    PlayerInfo[playerid][pBankMoney] += amount * PlayerInfo[playerid][pLevel];
    SetPlayerMoney(playerid, PlayerInfo[playerid][pBankMoney]);
    return 1;
}
Reply
#5

SafeGivePlayerMoney(playerid, PlayerInfo[playerid][pLevel]);


and

new ebill = (PlayerInfo[playerid][pBankMoney]/9000)*(PlayerInfo[playerid][pLevel]);
SafeGivePlayerMoney(playerid, ebill);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)