Problem with moneyhax in GarHouse (REP +1)
#1

The problem is: When someone sell his house (/sellhouse) and other player buy his house, seller does not receive money.

I added "#include <moneyhax_FS>" in GarHouse.pwn
in other filterscripts (Drift Points), it works and drifter received his money

GarHouse includes:
PHP код:
#define FILTERSCRIPT // < is this problem? because when I remove this line GarHouse script found pawno crash.
#include <a_samp>
#include <sscanf2>
#include <YSI\y_ini>
#include <ZCMD>
#include <streamer>
#include <foreach>
#include <moneyhax_FS> 
moneyhax_FS.inc (moneyhax_FS.inc is when i can to use money)
PHP код:
#if defined FILTERSCRIPT
    #endinput
#endif
#if defined _moneyhax_included
    #endinput
#endif
#define _moneyhax_included
stock moneyhax_GivePlayerMoney(playeridamount)
    return 
CallRemoteFunction("GivePlayerMonez""ii"playeridamount);
    
stock moneyhax_ResetPlayerMoney(playerid)
    return 
CallRemoteFunction("ResetPlayerMonez""i"playerid);
stock moneyhax_GetPlayerMoney(playerid)
    return 
CallRemoteFunction("GetPlayerMonez""i"playerid);
#define GivePlayerMoney             moneyhax_GivePlayerMoney
#define ResetPlayerMoney            moneyhax_ResetPlayerMoney
#define GetPlayerMoney              moneyhax_GetPlayerMoney 
Thanks in advance!
Reply
#2

up...
Reply
#3

bump
Reply
#4

someone?
Reply
#5

Okey maybe i am really new to pawn but you have; GetPlayerMonez

Shouldnt be GetPlayerMoney Try that :P


Код:
stock moneyhax_GivePlayerMoney(playerid, amount)
    return CallRemoteFunction("GivePlayerMoney", "ii", playerid, amount);
    
stock moneyhax_ResetPlayerMoney(playerid)
    return CallRemoteFunction("ResetPlayerMoney", "i", playerid);

stock moneyhax_GetPlayerMoney(playerid)
    return CallRemoteFunction("GetPlayerMoney", "i", playerid);
Just change Monez to Money and then try xD
Reply
#6

no dude, this is original moneyhax_FS.inc and he work in other filterscripts.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)