Jump to content

Question

Posted

Am si eu o problema la factiuni,cand dau /fwithdraw sau /fdeposit nu se intampla nimic,folosesc gamemode-ul Burned Mega Edit 

10 answers to this question

Recommended Posts

  • 0
Posted
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;
}

  • 0
Posted

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
  • 0
Posted
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.

  • 0
Posted
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

  • 0
Posted
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
  • 0
Posted
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.