Jump to content
  • 0

Probl SendMail


Ph0eniX

Question

Salutare am facut si eu un sistem de "contact" si imi da erroarea asta

 error 017: undefined symbol "SendMail"
nu am mai intalnito pana acuma...ce sa fac ? daca va trebuiesc liniile...
CMD:contact(playerid, params[])
{
    new BigString[1900];
    strcat(BigString, "Nu face Spamm cu eMail-urile , vei fi sanctionat cu ban 24h !\n", 1900 );
    strcat(BigString, "\n", 1900 );
    strcat(BigString, "{FF0000}Server Owners:\n", 1900 );
    strcat(BigString, "{FF9900}     test\n", 1900 );
    strcat(BigString, "{FF9900}     test\n", 1900 );
    strcat(BigString, "\n", 1900 );
	strcat(BigString, "{FF0000}EmailS:\n");
	strcat(BigString, "{FF9900}     test - [email protected]\n");
	strcat(BigString, "{FF9900}     test - [email protected]\n\n");
    strcat(BigString, "{AFAFAF}Te rugam sa iti introduci adresa de email la care te putem contacta in paranteze urmat de mesajul pe care doresti sa il trimiti!\n", 1900 );
	strcat(BigString, "{AFAFAF}Exemplu:\n");
	strcat(BigString, "{AFAFAF}([email protected])Salut!\n");
    ShowPlayerDialog(playerid,112,DIALOG_STYLE_INPUT,"Contact",BigString,"Send","Don't Send");
    return 1;
}
//------------------------------------------------------------------------------
CMD:respondcontact(playerid, params[])
{
	if(IsPlayerAdmin(playerid))
	{
        new mailstring[1900];
	    strcat(mailstring, "{0066CC}RCON Administrator - Respond Contact\n");
	    strcat(mailstring, "{FFFFFF}Adresa de EMail a user-ului cui ai vei trimite un mail:\n");
	    ShowPlayerDialog(playerid, 113, DIALOG_STYLE_INPUT, "RCON Send Mail",mailstring,"Trimite","Anuleaza");
	    return 1;
	}
	else SendClientMessage(playerid, COLOR_RED, "ERROR: Trebuie sa fii RCON Admin pentru a folosii aceasta comanda!");
	return 1;
}

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

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

la fel

EDIT: scuzati am gresit eu liniile care leam pus :)

	if(dialogid == 112)
{
	if(response == 1)
	{
        new str[365],n[365],year,month,day,hour,minute,second;
        getdate(year, month, day);
        gettime(hour, minute, second);
        GetPlayerName(playerid,n,sizeof(n));
        format(str,365,"(In Data de %d.%d.%d la Ora: %02d:%02d:%02d)%s ne-a transmis: %s\r\n",day,month,year,hour,minute,second,n,inputtext);
        SendMail( "[email protected]", str );
        SendClientMessage(playerid, COLOR_ORANGE, "Mesajul tau a fost trimis catre un Owner al server-ului! Vei primii un raspuns il cel mai scurt timp!");
        return 1;
    }
	if(response == 0)
	{
		SendClientMessage(playerid, COLOR_ORANGE, "Ai inchis meniul!");
	}
}
//------------------------------------------------------------------------------
	if (dialogid == 113)
{
	if(response == 1)
	{
		new str1[777];
		new str2[777];
		new str3[100];
		format(str2,777,"%s", inputtext);
		format(str1,777,"Salut!\n Pentru mai multe detalii in legatura cu intrebarea/problema ta te rugam sa iei legatura cu unul din ownerii server-ului!\nContact: Y!M(Yahoo Messenger):test ([email protected]) sau nume ([email protected])!\n Echipa Romania Game Stunt\n");
		SendMail(str2,"[email protected]",str1);
		format(str3,100,"{FF9900}Mesajul tau a fost trimis catre: {FF0000}%s!",inputtext);
		SendClientMessage(playerid, COLOR_ORANGE, str3);
		return 1;
	}
	if(response == 0)
	{
		SendClientMessage(playerid, COLOR_ORANGE, "Ai inchis meniul!");
	}
}
EDIT (again) : am bagat include'ul si...imi da
warning 202: number of arguments does not match definition
linia
SendMail( "****************@yahoo.com", str );

am pus eu "**" in loc de emailul meu dar am pus aceeasi lungime :) dc imi da?

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

 

Link to comment
Share on other sites

Incearca asta:

[pawn]SendMail("****************@yahoo.com",str1);[/pawn]

daca nu merge incearca asta:

[pawn]SendMail(str2,"****************@yahoo.com",str1);[/pawn]

<a href="http://www.game-state.com/94.177.106.162:7777/"><img src="http://www.game-state.com/94.177.106.162:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>

Link to comment
Share on other sites

am incercat si ala...cred ca o sa fac o cerere pt un system de genu pt ca sa buguit tot nu mai merge nimica la el pff... T/C pls...

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

 

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.