Jump to content
  • 0

Help ! Probleme mari


mcqueen

Question

C:\DOCUME~1\McQueen\Desktop\FAKE-Z~1\pawno\include\streamer.inc(400) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

C:\DOCUME~1\McQueen\Desktop\FAKE-Z~1\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(187) : warning 201: redefinition of constant/macro (symbol "GREEN")

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(188) : warning 201: redefinition of constant/macro (symbol "RED")

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2242) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2246) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2258) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2262) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2266) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2270) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2274) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2278) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2282) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2294) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2298) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2302) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2306) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2310) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2322) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2326) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2330) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2342) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2346) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2421) : warning 217: loose indentation

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2463) : warning 217: loose indentation

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2659) : error 004: function "SendIRCMessage" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2681) : error 004: function "SendIRCMessage" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2990) : error 004: function "OOCOff" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(3002) : error 004: function "OOCOff" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(3022) : error 004: function "OOCOff" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(3030) : error 004: function "OOCOff" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(3041) : error 004: function "OnPlayerUpdate" is not implemented

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

Asta imi da cand dau compile ! cum scap si eu de PlayerToPoint ca mereu cand adaug ceva imi da erroarea asta

GOO 77.36.64.43:7777 Fakes-Zone

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Foarte usor. Sa incepem...

C:\DOCUME~1\McQueen\Desktop\FAKE-Z~1\pawno\include\streamer.inc(400) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

C:\DOCUME~1\McQueen\Desktop\FAKE-Z~1\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition

Vezi ce e gresit prin includele ala, sau cauta altu pe forumul oficial.

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(187) : warning 201: redefinition of constant/macro (symbol "GREEN")

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(188) : warning 201: redefinition of constant/macro (symbol "RED")

Pune liniile.

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2242) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2246) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2258) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2262) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2266) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2270) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2274) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2278) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2282) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2294) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2298) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2302) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2306) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2310) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2322) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2326) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2330) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2342) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2346) : error 004: function "PlayerToPoint" is not implemented

Adauga asta:


forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        tempposx = (oldposx -x);
        tempposy = (oldposy -y);
        tempposz = (oldposz -z);
        //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}
C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2421) : warning 217: loose indentation C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2463) : warning 217: loose indentation
Aseaza corect liniile folosind tasta TAB, sau adauga la inceputul scriptului linia asta:
#pragma tabsize 0
C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2659) : error 004: function "SendIRCMessage" is not implemented C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2681) : error 004: function "SendIRCMessage" is not implemented
Adauga astea:
forward SendIRCMessage(channel, color, string[]);
public SendIRCMessage(channel, color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayersChannel[i] == channel)
            {
                SendClientMessage(i, color, string);
            }
        }
    }
}
C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(2990) : error 004: function "OOCOff" is not implemented C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(3002) : error 004: function "OOCOff" is not implemented C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(3022) : error 004: function "OOCOff" is not implemented C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(3030) : error 004: function "OOCOff" is not implemented
Adauga astea:
forward OOCOff(color,const string[]);
public OOCOff(color,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(!gOoc[i])
            {
                SendClientMessage(i, color, string);
            }
        }
    }
}
C:\Documents and Settings\McQueen\Desktop\Fake-Zone\gamemodes\Cyber-Network.pwn(3041) : error 004: function "OnPlayerUpdate" is not implemented
Aici nu sunt sigur, dar incearca. Adauga asta pe la inceputul scriptului. Trebuie sa mai ai altele cu forward.
forward OnPlayerUpdate(playerid);
Apoi la OnPlayerDisconnect adauga asta:
OnPlayerUpdate(playerid);
La GameModeInitExitFunc (cred ca asa ai) adauga asta:
OnPlayerUpdate(i);
La OnGameModeInit adauga asta:
SetTimer("OnPlayerUpdate", 1800000, 1);
Cauta public SaveAccounts() si ar trebui sa-l ai la fel ca asta:
public SaveAccounts()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            OnPlayerUpdate(i);
            if(PlayerInfo[i][pJob] > 0)
            {
                if(PlayerInfo[i][pContractTime] < 25)
                {
                    PlayerInfo[i][pContractTime] ++;
                }
            }
        }
    }
}
Daca nu-l ai adauga-l. Apoi adauga asta pe unde vrea inima ta
public OnPlayerUpdate(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid])
        {
            new string3[32];
            new playername3[MAX_PLAYER_NAME];
            GetPlayerName(playerid, playername3, sizeof(playername3));
            format(string3, sizeof(string3), "%s.ini", playername3);
            new File: hFile = fopen(string3, io_write);
            if (hFile)
            {
                new var[32];
                format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
                PlayerInfo[playerid][pCash] = GetPlayerCash(playerid);
                format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
                format(var, 32, "Wanted=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
                format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
                format(var, 64, "Lighter=%d\n",PlayerInfo[playerid][pLighter]);fwrite(hFile, var);
                format(var, 64, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
                format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
                format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
                format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
                format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
                format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
                format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
                format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
                format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
                format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
                format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
                format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
                format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
                format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
                format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
                format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
                format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
                format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
                format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
                format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
                format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
                format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
                format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
                format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
                format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
                format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
                format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
                format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
                format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
                format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
                format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
                format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
                format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
                format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
                format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
                format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
                format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
                format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
                format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
                format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
                format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
                format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
                format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
                format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
                format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
                format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
                format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
                format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
                GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
                format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
                format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
                format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
                format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
                format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
                format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
                format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
                format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
                format(var, 32, "RobSkill=%d\n",PlayerInfo[playerid][pRobSkill]);fwrite(hFile, var);
                format(var, 32, "Rob=%d\n",PlayerInfo[playerid][pRob]);fwrite(hFile, var);
                if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
                {
                    PlayerInfo[playerid][pPos_x] = 1684.9;
                    PlayerInfo[playerid][pPos_y] = -2244.5;
                    PlayerInfo[playerid][pPos_z] = 13.5;
                }
                if(Spectate[playerid] != 255)
                {
                    PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
                    PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
                    PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
                    PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
                    PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
                }
                format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
                format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
                format(var, 32, "Tow=%d\n",PlayerInfo[playerid][pTow]);fwrite(hFile, var);
                format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
                format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
                format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
                format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
                format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
                format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
                format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
                format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
                format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
                format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
                format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
                format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
                format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
                format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
                format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
                format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
                format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
                format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
                format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
                format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
                format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
                format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
                format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
                format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
                format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
                format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
                format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
                format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
                format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
                if(PlayerInfo[playerid][pDonateRank] < 1)
                {
                    PlayerInfo[playerid][pFuel] = 0;
                }
                format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
                format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
                format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
                format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
                format(var, 64, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var);
                format(var, 32, "Buletin=%d\n",PlayerInfo[playerid][pBuletin]);fwrite(hFile, var);
                format(var, 32, "CabinetTime=%d\n",PlayerInfo[playerid][pCabinetTime]);fwrite(hFile, var);
                fclose(hFile);
            }
        }
    }
    return 1;
}
Pe la comanda /buy (daca o ai) si pe la alte comenzi gen asta, trebuie sa ai pe undeva pe acolo
OnPlayerUpdate(playerid);

PS: Eu ti-am zis pe unde sunt liniile, tu inainte verifica daca ai sau nu liniile alea la comenzi mai ales.

PS2: Inainte sa incepi sa modifici, salveaza o copie a modului pentru orice eventualitate.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By AndreiSAMP2
      fatal error 111: user error: Did you do <YSI/y_hooks> instead of the required <YSI\y_hooks>?
    • By Георги П.
      Hello friends! Can anyone make me this system to work with dini data recording was done with y_ini and I want to be with dini I did a few attempts but did not help! I would be very grateful! 🙂
       
       
      Biz.pwn
    • By Rby Robert
      Salut incerc sa conectez un panel la gm dar imi da o eroare....
      [24-Aug-2021 17:25:46 Europe/Bucharest] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE), expecting end of file in /home/dtyroman/public_html/panel/inc/header.inc.php on line 7
      Nu stiu ce sa ii fac am incercat toate modele 
      daca sterg asta din panel/inc/header.inc.php
      else {
          if(Config::isAdmin(Config::getUser())) {
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0'); $get-
      >execute();
              $tickets = $get->rowCount();
              
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0'); $get->execute
      ();
              $unban = $get->rowCount();
              
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0'); $get-
      >execute();
              $complaints = $get->rowCount();
          } else {
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0 AND `UserID` =
      ?'); $get->execute(array(Config::getUser()));
              $tickets = $get->rowCount();
              
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0 AND `UserID` =
      ?'); $get->execute(array(Config::getUser()));
              $unban = $get->rowCount();
              
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0 AND `UserID`
      = ? OR `Status` = 0 AND `AccusedID` = ?'); $get->execute(array(Config::getUser(),Config::getUser()));
              $complaints = $get->rowCount();
          }
      }
      Merge dar nu pot sa ma loghez adica imi da pagina alba
       
    • By Wreeper
      De exemplu cand imi dau 3000000000 bani (3kkk), imi da bani pe minus in loc sa-mi dea 3kkk.
      Stiu ca e din cauza la 32-bit, am bagat si LY.inc insa problema inca persista.
      Ce as putea sa fac sa scot aceasta limita?
    • By R4zvyy
      Ma poate ajuta cineva cum pot baga mapping in include? am facut asta
       dupaia asta 
      Si imi da eroarea  asta 
       
      ../gamemodes/systems/mapping.inc(1) : error 021: symbol already defined: "LoadMaps"
      ../gamemodes/systems/mapping.inc(27) : error 010: invalid function or declaration
      Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase

      2 Errors.

      Ma poate ajuta cineva va rog?
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.