SendMail( to[], sender_email[], sender_name[], subject[], message[] );
case DIALOG_EMAIL:
{
if (!response) return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT,""COL_WHITE"Email",""COL_GREEN"Type Your Email Here","Ok","");
if(response)
{
new string[256];
PlayerInfo[playerid][pMail] = strlen(inputtext);
format(string,sizeof(string),"%s","test@mail.ru", "Administration", "Registration Finished"," .... ",PlayerInfo[playerid][pMail]);
SendMail(string); // 1269
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
PLAYERLOGGED[playerid] = 1;
}
return 1;
}
test.pwn(1269) : warning 202: number of arguments does not match definition
case DIALOG_EMAIL:
{
if (!response) return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT,""COL_WHITE"Email",""COL_GREEN"Type Your Email Here","Ok","");
if(response)
{
new string[256];
PlayerInfo[playerid][pMail] = strlen(inputtext);
format(string,sizeof(string),"%s",PlayerInfo[playerid][pMail]);
SendMail(string,"test@mail.ru", "Administration", "Registration Finished"," .... "); // 1269
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
PLAYERLOGGED[playerid] = 1;
}
return 1;
}
try this:
pawn Код:
|
case DIALOG_EMAIL:
{
if (!response) return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT,""COL_WHITE"Email",""COL_GREEN"Type Your Email Here","Ok","");
if(response)
{
PlayerInfo[playerid][pMail] = inputtext;
SendMail(PlayerInfo[playerid][pMail],"test@mail.ru", "Administration", "Registration Finished"," .... ");
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
PLAYERLOGGED[playerid] = 1;
}
return 1;
}