[Help] Problem with saving the player money!
#1

I have a big problem between a gamemode and filterscript!

I have a Vehicleownership in filterscripts and when you buy a car than the money stays in the player pocket!

In the gamemode i use:

PHP код:
stock GivePlayerCash(playeridmoney)
{
    
Cash[playerid] += money;
    
ResetMoneyBar(playerid);
    
UpdateMoneyBar(playerid,Cash[playerid]);
    return 
Cash[playerid];

And the same fuction "GivePlayerCash" i use in the filter script! [of course i stock the funtcion in my fs]

Now why the money stay by the player and why dont take the money from the player when he buy a vehicle??

And what is the difference between GivePlayerMoney and GivePlayerCash is the "GivePlayerCash" function for the safety of a cheat or what?


PLEASE HELP ME!

SRY FOR MY BAD ENGLISH!!!!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)