/givemoney Bug!
#1

Player have $000100000
when players use this :
Quote:

/givemoney <TargetID> <200000>

Will show server message like this:
** You don't have the money for that!

But when players use this :
Quote:

/givemoney <TargetID> <834924857824597829525>

Server message not showing, then TargetID's money will look like this : -$89198667

This my script:

pawn Код:
CMD:givemoney(playerid,params[])
{
    new target, money;
    new str1[150], str2[150];

    if(sscanf(params,"ud",target,money)) return SCM(playerid,-1,"Usage : /givemoney <PlayerID> <Amount>");
    if(!IsPlayerConnected(target)) return SCM(playerid,-1,"** Invalid PlayerID !!");
    if(money > GetPlayerMoney(playerid)) return SendClientMessage(playerid, red, "** You don't have the money for that!");
    if(money >= 9999999999 ) return SendClientMessage(playerid, red, "** You don't have the money for that!");
    printf(".: MONEY :. '%s' has send '%s' moeny >> '%d' !",GetName(playerid),GetName(target),money);

    format(str1,150,""GR".: MONEY :. '%s' has given you money '$.%d' !",GetName(playerid),money);
    SCM(target,-1,str1);
    GivePlayerMoney(target, 0+money);

    format(str2,150,""GR".: MONEY :. You has give money to '%s', '$.%d' !",GetName(target),money);
    SCM(playerid,-1,str2);
    GivePlayerMoney(playerid, 0-money);
    sDialog(playerid,"Server message",str2);

    return 1;
}
Sorry for my bad english -_-
Reply


Messages In This Thread
/givemoney Bug! - by VenomMancer - 21.06.2014, 23:19
Re: /givemoney Bug! - by kirostar - 21.06.2014, 23:24
Re: /givemoney Bug! - by Threshold - 21.06.2014, 23:36
Re: /givemoney Bug! - by kirostar - 21.06.2014, 23:46
Re: /givemoney Bug! - by Threshold - 21.06.2014, 23:48
Re: /givemoney Bug! - by VenomMancer - 22.06.2014, 00:20
Re: /givemoney Bug! - by AiRaLoKa - 22.06.2014, 00:25
Re: /givemoney Bug! - by Bek_Loking - 22.06.2014, 00:28
Re: /givemoney Bug! - by VenomMancer - 22.06.2014, 00:37

Forum Jump:


Users browsing this thread: 1 Guest(s)