Jump to content

Question

Posted

Stiu ca este un bug la LuxAdmin, atunci cand intra un player cu numele unui admin, il logheaza automat.

Stuntman m-a ajutat odata sa rezolv acest bug, dar acum nu mai stiu cum sa il rezolv.

Era ceva de genul "if( !strlen( inputtext ) ) return 1;" dar nu stiu unde si parca mai trebuia ceva de adaugat..

www.youtube.com/thebwgg

2 answers to this question

Recommended Posts

Posted

La OnDialogResponse sub

if (dialogid == DIALOGID+67)
	{
 		if(response == 0 && ServerInfo[MustLogin] == 1) { KickEx( playerid, "Server", "You must to login" ); } //aici am modificat eu la mine in script
 		if(response)
		{
baga
if(strlen(inputtext) == 0) return SendClientMessage( playerid, -1, "Trebuie sa scrii o parola!" );
si sub
if (dialogid == DIALOGID+69)
	{
 		if(response == 0 && ServerInfo[MustLogin] == 1) { KickEx( playerid, "Server", "You must to login" ); } //aici am modificat eu la mine in script
 		if(response)
		{
pune
if(strlen(inputtext) == 0) return SendError(playerid,"Trebuie sa scrii un raspuns!","You must to write a response!");

Posted

Daca, caut la OnDialogResponse acolo este legat de /pm.

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
#if EnablePM_Cmd == true
	if (dialogid == DIALOG_TYPE_PM)
	{
 		if(response)
	    {
     		if (strlen(inputtext) < 1 || strlen(inputtext) > 80)
			return SendClientMessage(playerid, red, "ERROR: Invalid PM Lenght!");
            OnPlayerPrivmsg(playerid, PMplayer1, inputtext);
		}
		return 1;
	}
#endif
#if USE_DIALOGS == true

www.youtube.com/thebwgg

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.