26.03.2017, 13:15
Hello guys, I have some errors in my gamemode, I try to put an Anti-Cheat but I delet them, now I have this errors:
//==============================================================================
stock GivePlayerMoneyEx(playerid,amount)
{
ResetPlayerMoney(playerid);
SetPVarInt(playerid,"cash",GetPVarInt(playerid,"cash") + amount);
if(GetPVarInt(playerid,"cash") > GetPVarInt(playerid,"maxcash")) SetPVarInt(playerid,"maxcash",GetPVarInt(playerid,"cash"));
return GivePlayerMoney(playerid,GetPVarInt(playerid,"cash"));
}
//==============================================================================
stock SetPlayerMoneyEx(playerid,amount)
{
ResetPlayerMoney(playerid);
SetPVarInt(playerid,"cash",amount);
if(GetPVarInt(playerid,"cash") > GetPVarInt(playerid,"maxcash")) SetPVarInt(playerid,"maxcash",GetPVarInt(playerid,"cash"));
return GivePlayerMoney(playerid,GetPVarInt(playerid,"cash"));
}
//==============================================================================
stock GetPlayerMoneyEx(playerid)return GetPVarInt(playerid,"cash");
//==============================================================================
Use GivePlayerMoneyEx
PHP код:
|