Jump to content
  • 0

Factions[Problema]


wNekiRo

Question

10 answers to this question

Recommended Posts

  • 0
Chiar acum, Mister a spus:

Salut posteaza codul/ comenzile

YCMD:fdeposit(playerid, params[], help) {
    for(new s = 0; s < sizeof(SafeInfo); s++) {
        if(PlayerToPoint(5.0, playerid, SafeInfo[sPosX], SafeInfo[sPosY], SafeInfo[sPosZ])) {
            if(PlayerInfo[playerid][pMember] == SafeInfo[sFactionID]) {
                if(TradeID[playerid] != -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta comanda atata timp cat esti implicat intr-o afacere!");
                SeifID[playerid] = PlayerInfo[playerid][pMember]-1;
                ShowPlayerDialog(playerid, DIALOG_FDEPOSIT, DIALOG_STYLE_LIST, "Faction deposit", "Money\nMaterials\nDrugs", "Ok", "Exit");
            }
        }
    }
    return 1;
}

YCMD:fwithdraw(playerid, params[], help) {
    for(new s = 0; s < sizeof(SafeInfo); s++) {
        if(PlayerToPoint(5.0, playerid, SafeInfo[sPosX], SafeInfo[sPosY], SafeInfo[sPosZ])) {
            if(PlayerInfo[playerid][pMember] == SafeInfo[sFactionID]) {
                if(PlayerInfo[playerid][pRank] >= 6) {
                    if(TradeID[playerid] != -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta comanda atata timp cat esti implicat intr-o afacere!");
                    SeifID[playerid] = PlayerInfo[playerid][pMember]-1;
                    new string[180];
                    format(string, sizeof(string), "Option\tResult\nMoney\t$%s\nMaterials\t%s\nDrugs\t%s\n", FormatNumber(SafeInfo[s-1][sMoney]), FormatNumber(SafeInfo[s-1][sMaterials]), FormatNumber(SafeInfo[s-1][sDrugs]));
                    ShowPlayerDialog(playerid, DIALOG_FWITHDRAW, DIALOG_STYLE_TABLIST_HEADERS, "Faction withdraw", string, "Ok", "Exit");
                }
            }
        }
    }
    return 1;
}

Link to comment
Share on other sites

  • 0

nu mai face dublu post up nu se da din minut in minut

De ce ai taiat textul?

YCMD:fwithdraw(playerid, params[], help)

{
    for(new s = 0; s < sizeof(SafeInfo); s++)

{
        if(PlayerToPoint(5.0, playerid, SafeInfo[sPosX], SafeInfo[sPosY], SafeInfo[sPosZ]))

{
            if(PlayerInfo[playerid][pMember] == SafeInfo[sFactionID])

{
                if(PlayerInfo[playerid][pRank] >= 6)

{
                    if(TradeID[playerid] != -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta comanda atata timp cat esti implicat intr-o afacere!");
                    SeifID[playerid] = PlayerInfo[playerid][pMember]-1;
                    new string[180];
                    format(string, sizeof(string), "Option\tResult\nMoney\t$%s\nMaterials\t%s\nDrugs\t%s\n", FormatNumber(SafeInfo[s-1][sMoney]), FormatNumber(SafeInfo[s-1][sMaterials]), FormatNumber(SafeInfo[s-1][sDrugs]));
                    ShowPlayerDialog(playerid, DIALOG_FWITHDRAW, DIALOG_STYLE_TABLIST_HEADERS, "Faction withdraw", string, "Ok", "Exit");
                }

else return SCM nu ai rank 6
            }

else SCM seiful nu este al factiunii tale
        }

else return SCM nu esti langa seif
    }
    return 1;
}

 

 

incearca codul de mai sus si unde am pus eu scm pune si tu mesajele cum trebuie compileaza intra pe joc si incearca

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
Chiar acum, Mister a spus:

nu mai face dublu post up nu se da din minut in minut

De ce ai taiat textul?

YCMD:fwithdraw(playerid, params[], help)

{
    for(new s = 0; s < sizeof(SafeInfo); s++)

{
        if(PlayerToPoint(5.0, playerid, SafeInfo[sPosX], SafeInfo[sPosY], SafeInfo[sPosZ]))

{
            if(PlayerInfo[playerid][pMember] == SafeInfo[sFactionID])

{
                if(PlayerInfo[playerid][pRank] >= 6)

{
                    if(TradeID[playerid] != -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta comanda atata timp cat esti implicat intr-o afacere!");
                    SeifID[playerid] = PlayerInfo[playerid][pMember]-1;
                    new string[180];
                    format(string, sizeof(string), "Option\tResult\nMoney\t$%s\nMaterials\t%s\nDrugs\t%s\n", FormatNumber(SafeInfo[s-1][sMoney]), FormatNumber(SafeInfo[s-1][sMaterials]), FormatNumber(SafeInfo[s-1][sDrugs]));
                    ShowPlayerDialog(playerid, DIALOG_FWITHDRAW, DIALOG_STYLE_TABLIST_HEADERS, "Faction withdraw", string, "Ok", "Exit");
                }

else return SCM nu ai rank 6
            }

else SCM seiful nu este al factiunii tale
        }

else return SCM nu este langa seif
    }
    return 1;
}

 

 

incearca codul de mai sus si unde am pus eu scm pune si tu mesajele cum trebuie compileaza intra pe joc si incearca

nu am taiat eu textul,asa s-a pus cand am dat paste...,o sa incerc acum.

Link to comment
Share on other sites

  • 0
Chiar acum, Mister a spus:

nu mai face dublu post up nu se da din minut in minut

De ce ai taiat textul?

YCMD:fwithdraw(playerid, params[], help)

{
    for(new s = 0; s < sizeof(SafeInfo); s++)

{
        if(PlayerToPoint(5.0, playerid, SafeInfo[sPosX], SafeInfo[sPosY], SafeInfo[sPosZ]))

{
            if(PlayerInfo[playerid][pMember] == SafeInfo[sFactionID])

{
                if(PlayerInfo[playerid][pRank] >= 6)

{
                    if(TradeID[playerid] != -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta comanda atata timp cat esti implicat intr-o afacere!");
                    SeifID[playerid] = PlayerInfo[playerid][pMember]-1;
                    new string[180];
                    format(string, sizeof(string), "Option\tResult\nMoney\t$%s\nMaterials\t%s\nDrugs\t%s\n", FormatNumber(SafeInfo[s-1][sMoney]), FormatNumber(SafeInfo[s-1][sMaterials]), FormatNumber(SafeInfo[s-1][sDrugs]));
                    ShowPlayerDialog(playerid, DIALOG_FWITHDRAW, DIALOG_STYLE_TABLIST_HEADERS, "Faction withdraw", string, "Ok", "Exit");
                }

else return SCM nu ai rank 6
            }

else SCM seiful nu este al factiunii tale
        }

else return SCM nu esti langa seif
    }
    return 1;
}

 

 

incearca codul de mai sus si unde am pus eu scm pune si tu mesajele cum trebuie compileaza intra pe joc si incearca

C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14431) : error 035: argument type mismatch (argument 3)
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14434) : error 033: array must be indexed (variable "SafeInfo")
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : warning 217: loose indentation
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : error 076: syntax error in the expression, or invalid function call
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : warning 217: loose indentation
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : error 017: undefined symbol "nu"
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : error 017: undefined symbol "ai"
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

  • 0
1 hour ago, Exodus_xD said:

C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14431) : error 035: argument type mismatch (argument 3)
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14434) : error 033: array must be indexed (variable "SafeInfo")
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : warning 217: loose indentation
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : error 076: syntax error in the expression, or invalid function call
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : warning 217: loose indentation
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : error 017: undefined symbol "nu"
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : error 017: undefined symbol "ai"
C:\Users\Cht\Desktop\Samp\gamemodes\GM.pwn(14447) : fatal error 107: too many error messages on one line

nu mai face dublu post, si cred ca ti am spus destul de clar

Quote

incearca codul de mai sus si unde am pus eu scm pune si tu mesajele cum trebuie compileaza intra pe joc si incearca

 

else return SCM nu ai rank 6  nu ti se pare ca e ceva gresit aici? eu nu iti pot da mura in gura

 

  • Thanks 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
Chiar acum, Mister a spus:

nu mai face dublu post, si cred ca ti am spus destul de clar

 

else return SCM nu ai rank 6  nu ti se pare ca e ceva gresit aici? eu nu iti pot da mura in gura

 

ba da acum am realizat,merci. ❤️ 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.