Money Bug
#1

Hi
In my gamemode....
When i add money /givemoney ID 5000000 and buy something for 150(Example) my money go down until -150 WHY ??

Please help

Thanks
Reply
#2

buy something for 150(Example)

what do you buy ??
Reply
#3

everything.I mean when i buy something for 50 it will go -50 and if i add money to bank the money that i still have will go 000
Reply
#4

We cannot help you if you do not supply us with any code. Post some so we can have a look.
Reply
#5

whole script or ?
Reply
#6

No, just a portion of your part which is bugged.
Reply
#7

Actually just the part where you buy something and it takes the money from you.
Reply
#8

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Actually just the part where you buy something and it takes the money from you.
It takes money and when i /pay ID Money . (I give money to somebody)

caN this be something??

PHP код:
new Cash[MAX_PLAYERS];
stock GivePlayerCash(playeridmoney)
{
    
Cash[playerid] += money;
    
ResetMoneyBar(playerid);//Reseta novac u originalni bar
    
UpdateMoneyBar(playerid,Cash[playerid]);//Stavlja novac u originalni bar
    
return Cash[playerid];
}
stock SetPlayerCash(playeridmoney)
{
    
Cash[playerid] = money;
    
ResetMoneyBar(playerid);//Reseta novac u originalni bar
    
UpdateMoneyBar(playerid,Cash[playerid]);//Stavlja novac u originalni bar
    
return Cash[playerid];
}
stock ResetPlayerCash(playerid)
{
    
Cash[playerid] = 0;
    
ResetMoneyBar(playerid);//Reseta novac u originalni bar
    
UpdateMoneyBar(playerid,Cash[playerid]);//Stavlja novac u originalni bar
    
return Cash[playerid];
}
stock GetPlayerCash(playerid)
{
    return 
Cash[playerid];

Reply
#9

Yes i know, give us the that code where it takes money from you when you buy!
Reply
#10

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Yes i know, give us the that code where it takes money from you when you buy!
i dont understand you

Look the post up !
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)