Jump to content
  • 0

Problema RCON


SupeR

Question

14 answers to this question

Recommended Posts

Apare vreun mesaj cand te loghezi?

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

eu spun sa nu mai folosesti acelasi RCON , adica in server.cfg sa pui un rcon la plesneala iar in gamemode sa scrii asa

SendRconCommand("rcon_password parola");

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Apare vreun mesaj cand te loghezi?

Apare vreun mesaj cand te loghezi cu parola RCON?

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

Fa asta.

new parola2[] = "salut",atent[MAX_PLAYERS] = 0;

[pawn]public OnRconLoginAttempt(ip[], password[], success)

{

    if(success)

    {

        ShowPlayerDialog(playerid, DIALOG_LOGIN_RCON, DIALOG_STYLE_PASSWORD, "Login RCON", "Te rugam sa scrii a doua parola", "Login", "kick");

    }

    return 1;

}[/pawn]

La OnDialogResponse pui

[pawn]if(dialogid == DIALOG_LOGIN_RCON)

    {

        if(response)

        {

            if(atent[playerid] == 3)

            {

                  return KickWithMessage(playerid, COLOR_RED, "Nu stii a doua parola.");

            }

            if(strcmp(parola2, inputtext, true) == 0)

            {

                  SendClientMessage(playerid, -1, "Te-ai conectat cu RCON-ul");

            }

            else

            {

                  atent[playerid]++;

              }

        }

        else

        {

            KickWithMessage(playerid, COLOR_RED, "Nu stii a doua parola.");

        }

        return 1;

    }[/pawn]

Testeaza si zimi daca merge.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Fa asta.

new parola2[] = "salut",atent[MAX_PLAYERS] = 0;

[pawn]public OnRconLoginAttempt(ip[], password[], success)

{

    if(success)

    {

        ShowPlayerDialog(playerid, DIALOG_LOGIN_RCON, DIALOG_STYLE_PASSWORD, "Login RCON", "Te rugam sa scrii a doua parola", "Login", "kick");

    }

    return 1;

}[/pawn]

La OnDialogResponse pui

[pawn]if(dialogid == DIALOG_LOGIN_RCON)

    {

        if(response)

        {

            if(atent[playerid] == 3)

            {

                  return KickWithMessage(playerid, COLOR_RED, "Nu stii a doua parola.");

            }

            if(strcmp(parola2, inputtext, true) == 0)

            {

                  SendClientMessage(playerid, -1, "Te-ai conectat cu RCON-ul");

            }

            else

            {

                  atent[playerid]++;

              }

        }

        else

        {

            KickWithMessage(playerid, COLOR_RED, "Nu stii a doua parola.");

        }

        return 1;

    }[/pawn]

Testeaza si zimi daca merge.

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23) : warning 235: public function lacks forward declaration (symbol "OnRconLoginAttempt")

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23 -- 1) : error 001: expected token: ")", but found "&"

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(1) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(3) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(6) : error 054: unmatched closing brace ("}")

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(7) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(12) : error 001: expected token: ";", but found "{"

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(13) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(15) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(17) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(19) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(21) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23 -- 25) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23 -- 30) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23 -- 30) : fatal error 107: too many error messages on one line

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

Si am La zi pawno =]]]]]]]]]]]]]]]]]]]]]]]

Link to comment
Share on other sites

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23) : warning 235: public function lacks forward declaration (symbol "OnRconLoginAttempt")

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23 -- 1) : error 001: expected token: ")", but found "&"

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(1) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(3) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(6) : error 054: unmatched closing brace ("}")

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(7) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(12) : error 001: expected token: ";", but found "{"

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(13) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(15) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(17) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(19) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(21) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23 -- 25) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23 -- 30) : error 010: invalid function or declaration

C:\Documents and Settings\Dayanaa\Desktop\New.pwn(23 -- 30) : fatal error 107: too many error messages on one line

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

Si am La zi pawno =]]]]]]]]]]]]]]]]]]]]]]]

Nu imi merge sa pun  in server.cfg---->Rcon 0 nush cum (e hostat sv)

Link to comment
Share on other sites

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.