I don't have payday
#4

Quote:
Originally Posted by ElieJabbour
Посмотреть сообщение
pawn Код:
public PayDay()
{
    new string[128];
    new account,interest;
    new rent = 0;
    GiftAllowed = 1;
    foreach(Player, i)
    {
            if(PlayerInfo[i][pLevel] > 0)
            {
                if(MoneyMessage[i]==1)
                {
                    if( PlayerInfo[i][pJailed] < 1 && !IsACop(i))
                    {
                        format(string,sizeof(string),"You're failing to pay your debt of $%d - now the police are on the look out for you.",GetPlayerCash(i));
                        SendClientMessageEx(i, COLOR_LIGHTRED, string);
                        if(PlayerInfo[i][pWantedLevel] < 6) PlayerInfo[i][pWantedLevel] += 1;
                        PlayerInfo[i][pCrimes] += 1;
                        SetPlayerWantedLevel(i, PlayerInfo[i][pWantedLevel]);
                    }
                }
                account = PlayerInfo[i][pAccount];
                if(PlayerInfo[i][pRenting] != INVALID_HOUSE_ID)
                {
                    if(HouseInfo[PlayerInfo[i][pRenting]][hRentFee] > PlayerInfo[i][pAccount])
                    {
                        PlayerInfo[i][pRenting] = INVALID_HOUSE_ID;
                        SendClientMessageEx(i, COLOR_WHITE, "You have been evicted.");
                    }
                    else {
                        HouseInfo[PlayerInfo[i][pRenting]][hSafeMoney] += HouseInfo[PlayerInfo[i][pRenting]][hRentFee];
                        PlayerInfo[i][pAccount] -= HouseInfo[PlayerInfo[i][pRenting]][hRentFee];
                    }
                }
                new tmpintrate, faretax;
                tmpintrate = 1;

               
                if(PlayerInfo[i][pLevel] <= 5) SendClientMessageEx(i,COLOR_LIGHTBLUE,"Need to travel somewhere and don't have wheels? Use '/service taxi' to call a cab!");
                if(PlayerInfo[i][pPayDay] >= 5)
                {
                    if(GetPVarInt(i, "AdvisorDuty") == 1)
                    {
                        PlayerInfo[i][pDutyHours]++;
                    }
                    if(PlayerInfo[i][pDonateRank] > 0)
                    {
                        new bonus = PlayerInfo[i][pPayCheck] / 2;
                        PlayerInfo[i][pPayCheck] += bonus;
                    }
                    if(SpecTimer == 1)
                    {
                        AddSpecialToken(i);
                    }
                    rent = 0;
                    faretax = 0;
                    new checks = PlayerInfo[i][pPayCheck];
                    if(PlayerInfo[i][pTaxiLicense] == 1) faretax = (checks/100)*5;
                    new Taxable = (( checks / 100 ) * TaxValue);
                    PlayerInfo[i][pAccount] -= Taxable + faretax;
                    Tax += Taxable + faretax;


                    PlayerInfo[i][pExp]++;
                    PlayerInfo[i][pAccount] = account+interest;
                    SendClientMessageEx(i, COLOR_WHITE, "________ BANK STATEMENT ________");
                    format(string, sizeof(string), "  Paycheck: $%d  |  Tax Money: -$%d (%d percent)", checks, Taxable, TaxValue);
                    SendClientMessageEx(i, COLOR_GRAD1, string);
Not sure, But try it
Код:
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(3860) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(3889) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4117) : error 017: undefined symbol "foreach"
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4119) : error 017: undefined symbol "playerid"
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4122) : error 017: undefined symbol "playerid"
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4235) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4278) : error 017: undefined symbol "GetVehicleName"
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4278) : warning 202: number of arguments does not match definition
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4294) : error 004: function "IsASalesVehicle" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4298) : error 004: function "GetVehiclePrice" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4393) : error 004: function "SafeSetPlayerPos" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4398) : error 004: function "SafeSetPlayerPos" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4403) : error 004: function "SafeSetPlayerPos" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4408) : error 004: function "SafeSetPlayerPos" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(4413) : error 004: function "SafeSetPlayerPos" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(5231) : error 004: function "ABroadCast" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(5233) : error 004: function "ABroadCast" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6032) : error 004: function "ClearChatbox" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6050) : error 004: function "SendAdminMessage" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6055) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6077) : error 004: function "SendAdminMessage" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6088) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6099) : error 004: function "ClearChatbox" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6107) : error 004: function "SendAdminMessage" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6109) : error 004: function "SendAdminMessage" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6259) : error 004: function "SendIRCMessage" is not implemented
C:\ROCKST~1\Server\RAVEN'~1.3C\GAMEMO~1\larp.pwn(6281) : error 004: function "SendIRCMessage" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
How to fix?
Reply


Messages In This Thread
I don't have payday - by dat_nguyen - 18.08.2011, 12:39
Re: I don't have payday - by dat_nguyen - 18.08.2011, 14:56
Re: I don't have payday - by ElieJabbour - 18.08.2011, 15:12
Re: I don't have payday - by dat_nguyen - 18.08.2011, 15:26
Re: I don't have payday - by ElieJabbour - 18.08.2011, 15:30
Re: I don't have payday - by dat_nguyen - 18.08.2011, 15:35
Re: I don't have payday - by Twizted - 18.08.2011, 17:12
Re: I don't have payday - by gamer931215 - 18.08.2011, 17:16
Re: I don't have payday - by ElieJabbour - 18.08.2011, 17:24
Re: I don't have payday - by dat_nguyen - 25.08.2011, 11:29

Forum Jump:


Users browsing this thread: 1 Guest(s)