10.03.2010, 16:06
Hellow , SA:MP Scripters ,
i have a good game mode
and it haves a Money bug, i mean when i give money its going up and then coming back to the number it was before..
things i tryed + have:
now i have the FAC.inc file
#include "FAC"
for player money etc..
also tryed: #include <FAC>
and deleted all the FAC_
also didnet worked, so i did it with FAC_
also didnet worked
....
help?
P.S:
heres all the FAC_ codes:
1)
----------------------------------------------
2)
3)
4)
5)
6)
and more and more more more...
************************************************** *******
Please Help!!!
i have a good game mode
and it haves a Money bug, i mean when i give money its going up and then coming back to the number it was before..
things i tryed + have:
now i have the FAC.inc file
#include "FAC"
for player money etc..
also tryed: #include <FAC>
and deleted all the FAC_
also didnet worked, so i did it with FAC_
also didnet worked
....
help?
P.S:
heres all the FAC_ codes:
1)
Код:
if(strcmp(dini_Get(PlayerFile(playername),"Clan"),"None.",true))
{
new r = dini_Int(GetClanFile(dini_Get(PlayerFile(playername),"Clan")),"R");
new g = dini_Int(GetClanFile(dini_Get(PlayerFile(playername),"Clan")),"G");
new b = dini_Int(GetClanFile(dini_Get(PlayerFile(playername),"Clan")),"B");
if(r != -1 && g != -1 && b != -1)SetPlayerColor(playerid,rgba2hex(r,g,b,100));
new file[256];
format(file,256,"Clans/%s.ini",dini_Get(PlayerFile(playername),"Clan"));
if(dini_Int(file,"Skin") != -1)SetPlayerSkin(playerid,dini_Int(file,"Skin"));
}
if(dini_Int(PlayerFile(playername), "Skin") != -1)SetPlayerSkin(playerid,dini_Int(PlayerFile(playername), "Skin"));
FAC_ResetPlayerMoney(playerid);
FAC_GivePlayerMoney(playerid,SpawnMoney);
2)
Код:
WriteToServerLog("Kills&Deaths",String);
if(PoliceOn[playerid] == 1)PoliceMissionOver(playerid);
if(BJumpRacer == playerid)EndRace();
if(InWeaponArea[playerid] == 1)InWeaponArea[playerid] = 0;
if(ApMission[playerid] == 1)ApMission[playerid] = 2;
if(bounty[playerid] > 0) {
format(String, sizeof(String), ".%d $,%s чйбмъ тм шаще щм", bounty[playerid],playername);
SendClientMessage(killerid,COLOR_RED, String);
FAC_GivePlayerMoney(killerid, bounty[playerid]);
bounty[playerid] = 0;
}
----------------------------------------------------------
Код:
if(kill[playerid] < 10)FAC_GivePlayerMoney(killerid,500);
Код:
FAC_GivePlayerMoney(killerid,(dini_Int(PlayerFile(playername),"Level") - dini_Int(PlayerFile(killername),"Level"))*500);
Код:
if(FAC_GetPlayerMoney(playerid) < PmCost) return SendClientMessage(playerid,COLOR_WHITE,".No Money in ur hands"),0;
Код:
if(FAC_GetPlayerMoney(playerid) < dini_Int(file,"SetPrice"))
************************************************** *******
Please Help!!!

