Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted (edited)

Problema intalnita (descriere):Probleme spatii
Ero(area / rile) / warning-(ul / urile):

 

 
C:\Users\SirFulgeruL\Desktop\samp server\SERVER.UNNIC\SERVER.UNNIC\pawno\yq10571.pwn(5448) : warning 217: loose indentation
C:\Users\SirFulgeruL\Desktop\samp server\SERVER.UNNIC\SERVER.UNNIC\pawno\yq10571.pwn(6513) : warning 217: loose indentation
C:\Users\SirFulgeruL\Desktop\samp server\SERVER.UNNIC\SERVER.UNNIC\pawno\yq10571.pwn(6514) : warning 217: loose indentation
C:\Users\SirFulgeruL\Desktop\samp server\SERVER.UNNIC\SERVER.UNNIC\pawno\yq10571.pwn(6515) : warning 217: loose indentation
C:\Users\SirFulgeruL\Desktop\samp server\SERVER.UNNIC\SERVER.UNNIC\pawno\yq10571.pwn(6663) : warning 217: loose indentation
Pawn compiler 3.2.3664            Copyright (c) 1997-2006, ITB CompuPhase
 
 
5 Warnings.

Liniile de cod / sursa / script-ul(obligatoriu):

Linia 5448:

    // PAYDAY SAVE
     if(PlayerInfo[playerid][pWantedLevel] >= 1)
    {
        new price = PlayerInfo[playerid][pWantedLevel] * 1000;
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
             if(IsACop(i) && CrimInRange(30.0, playerid,i))
            {
                new string[512];
                new sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                PlayerInfo[playerid][pJailed] = 1;
                PlayerInfo[playerid][pJailTime] = (PlayerInfo[playerid][pWantedLevel])*(150);
                format(string, sizeof(string), "Dispecer: %s a intrat in jail [%d puncte wanted] deoarece a folosit comanda /quit in perimetrul unui politist!", sendername, PlayerInfo[playerid][pWantedLevel]);
                SendRadioMessage(1, TEAM_BLUE_COLOR, string);
                SendRadioMessage(2, TEAM_BLUE_COLOR, string);
                SendRadioMessage(3, TEAM_BLUE_COLOR, string);
                format(string, sizeof(string), "Jucatorul %s a intrat in jail (posibil /quit cu wanted) si ai primit %s$!", sendername, FormatNumber(price));
                SCM(i, COLOR_WHITE, string);
                GivePlayerCash(i, price);
                GivePlayerCash(playerid, -price);
                WantedPoints[playerid] = 0;
                PlayerInfo[playerid][pWantedLevel] = 0;
                SetPlayerWantedLevel(playerid, 0);
                Update(playerid,pWantedLevelx);
                Update(playerid,pJailedx);
                Update(playerid,pJailTimex);
                Update(i, pCashx);
                Update(playerid, pCashx);
            }
        }
    }
    if(JoinedDeathMatch[playerid] > 0) // linia 5448
    {
        if(JoinedDeathMatch[playerid] ==  2)
        {
            if(Echipa2 > 0)
            {
                Echipa2 -= 1;
            }
        }
        else if(JoinedDeathMatch[playerid] ==  1)
        {
            if(Echipa1 > 0)
            {
                Echipa1 -= 1;
            }
        }
    }[/code]
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:
 
Edited by SirFulgeruL

2 answers to this question

Recommended Posts

  • 0
Posted
// PAYDAY SAVE
    if(PlayerInfo[playerid][pWantedLevel] >= 1)
    {
        new price = PlayerInfo[playerid][pWantedLevel] * 1000;
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsACop(i) && CrimInRange(30.0, playerid,i))
            {
                new string[512];
                new sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                PlayerInfo[playerid][pJailed] = 1;
                PlayerInfo[playerid][pJailTime] = (PlayerInfo[playerid][pWantedLevel])*(150);
                format(string, sizeof(string), "Dispecer: %s a intrat in jail [%d puncte wanted] deoarece a folosit comanda /quit in perimetrul unui politist!", sendername, PlayerInfo[playerid][pWantedLevel]);
                SendRadioMessage(1, TEAM_BLUE_COLOR, string);
                SendRadioMessage(2, TEAM_BLUE_COLOR, string);
                SendRadioMessage(3, TEAM_BLUE_COLOR, string);
                format(string, sizeof(string), "Jucatorul %s a intrat in jail (posibil /quit cu wanted) si ai primit %s$!", sendername, FormatNumber(price));
                SCM(i, COLOR_WHITE, string);
                GivePlayerCash(i, price);
                GivePlayerCash(playerid, -price);
                WantedPoints[playerid] = 0;
                PlayerInfo[playerid][pWantedLevel] = 0;
                SetPlayerWantedLevel(playerid, 0);
                Update(playerid,pWantedLevelx);
                Update(playerid,pJailedx);
                Update(playerid,pJailTimex);
                Update(i, pCashx);
                Update(playerid, pCashx);
            }
        }
    }
    if(JoinedDeathMatch[playerid] > 0) // linia 5448
    {
        if(JoinedDeathMatch[playerid] ==  2)
        {
            if(Echipa2 > 0)
            {
                Echipa2 -= 1;
            }
        }
        else if(JoinedDeathMatch[playerid] ==  1)
        {
            if(Echipa1 > 0)
            {
                Echipa1 -= 1;
            }
        }
    }

POFTIM!

  • Upvote 1
  • 0
Posted
// PAYDAY SAVE
    if(PlayerInfo[playerid][pWantedLevel] >= 1)
    {
        new price = PlayerInfo[playerid][pWantedLevel] * 1000;
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsACop(i) && CrimInRange(30.0, playerid,i))
            {
                new string[512];
                new sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                PlayerInfo[playerid][pJailed] = 1;
                PlayerInfo[playerid][pJailTime] = (PlayerInfo[playerid][pWantedLevel])*(150);
                format(string, sizeof(string), "Dispecer: %s a intrat in jail [%d puncte wanted] deoarece a folosit comanda /quit in perimetrul unui politist!", sendername, PlayerInfo[playerid][pWantedLevel]);
                SendRadioMessage(1, TEAM_BLUE_COLOR, string);
                SendRadioMessage(2, TEAM_BLUE_COLOR, string);
                SendRadioMessage(3, TEAM_BLUE_COLOR, string);
                format(string, sizeof(string), "Jucatorul %s a intrat in jail (posibil /quit cu wanted) si ai primit %s$!", sendername, FormatNumber(price));
                SCM(i, COLOR_WHITE, string);
                GivePlayerCash(i, price);
                GivePlayerCash(playerid, -price);
                WantedPoints[playerid] = 0;
                PlayerInfo[playerid][pWantedLevel] = 0;
                SetPlayerWantedLevel(playerid, 0);
                Update(playerid,pWantedLevelx);
                Update(playerid,pJailedx);
                Update(playerid,pJailTimex);
                Update(i, pCashx);
                Update(playerid, pCashx);
            }
        }
    }
    if(JoinedDeathMatch[playerid] > 0) // linia 5448
    {
        if(JoinedDeathMatch[playerid] ==  2)
        {
            if(Echipa2 > 0)
            {
                Echipa2 -= 1;
            }
        }
        else if(JoinedDeathMatch[playerid] ==  1)
        {
            if(Echipa1 > 0)
            {
                Echipa1 -= 1;
            }
        }
    }

POFTIM!

Ma nigga :(( 

Guest
This topic is now closed to further replies.
×
×
  • 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.