WASSIm. Posted February 6, 2014 Share Posted February 6, 2014 "ERROR failed to send message to email" مساعد أقولي time = { } addCommandHandler("SendMail", function (player,cmd,to,subject,massge) if(massge)then if( string.find(to,"@") ) then if not isTimer(time[player]) then if (callRemote("http://gtazamta.host22.com", getFromWebstire, to, subject, massage)) then outputChatBox("Message Has been Sended to email", player, 0, 255, 0) time[player] = setTimer(function () end,5 * 60000,1) else outputChatBox("ERROR failed to send message to email", player, 0, 255, 0) end else outputChatBox("You already sended message to email", player, 255, 0, 0) end end end end) Link to comment
فاّرس Posted February 6, 2014 Share Posted February 6, 2014 ^ F8 وش كتبت في + getFromWebstire غير معرفه + ? PHP وين ملف Link to comment
WASSIm. Posted February 6, 2014 Share Posted February 6, 2014 f8 كتابت في: SendMail [email protected] test tessssssst مفهمتوش و ملف في موقع getFromWebstire و Link to comment
#DRAGON!FIRE Posted February 6, 2014 Share Posted February 6, 2014 f8 كتابت في: SendMail [email protected] test tessssssstمفهمتوش و ملف في موقع getFromWebstire و getFromWebstire .. فنكشن اسمه كذا لازم يكون موجود Link to comment
#DRAGON!FIRE Posted February 6, 2014 Share Posted February 6, 2014 و شناوا نحوت فيه ? من فضلك تكلم اللغة االعربية ^ . Link to comment
WASSIm. Posted February 6, 2014 Share Posted February 6, 2014 أنا أتكلم عربيت و لكن بيل تونسي getFromWebstire مذا أضع فيه function getFromWebstire () --هنا end Link to comment
فاّرس Posted February 6, 2014 Share Posted February 6, 2014 function getFromWebstire(value) if value ~= "ERROR" then end end راجع الدرس Link to comment
./BlackBird# Posted February 6, 2014 Author Share Posted February 6, 2014 تقدر تترك الفنكشن فاضي اذا ما راح تسوي call Back Link to comment
فاّرس Posted February 6, 2014 Share Posted February 6, 2014 اهم شيء انت مسوي ملف بي اتش بي PHP؟ Link to comment
WASSIm. Posted February 6, 2014 Share Posted February 6, 2014 the Best فعلة ما أخبرتني بيه و لكن لا يعمل Link to comment
WASSIm. Posted February 6, 2014 Share Posted February 6, 2014 <?require "mtaphpsdk/mta_sdk.php";$table = mta::getInput();$mailTo = $table[0]$Subject = $table[1]$Message = $table[2]if(isset($Message)){mail($mailTo,$Subject,$Message)}?> Link to comment
./BlackBird# Posted February 6, 2014 Author Share Posted February 6, 2014 عطيت صلاحيات للسكربت؟ Link to comment
WASSIm. Posted February 6, 2014 Share Posted February 6, 2014 ولكن لم تأتي رسالة "Successfully send message to email" شكرا. مكتوب time = { } addCommandHandler("SendMail", function (player, cmd, to, subject, massge) if (massge) or (string.find(to,"@")) then if not isTimer(time[player]) then function getFromWebstire(value) if value ~= "ERROR" then outputChatBox("Successfully send message to email", player, 0, 255, 0) end end if (callRemote("http://gtazamta.host22.com", getFromWebstire, to, subject, massage)) then outputChatBox("Send message to email: "..to.."...", player, 0, 255, 0) time[player] = setTimer(function () end,5 * 60000,1) else outputChatBox("ERROR failed to send message to email", player, 255, 0, 0) end else outputChatBox("You already sended message to email", player, 255, 0, 0) end else outputChatBox("Wrong. need to be use /SendMail to subject massge", player, 255, 0, 0) end end) Link to comment
./BlackBird# Posted February 6, 2014 Author Share Posted February 6, 2014 <?require "mtaphpsdk/mta_sdk.php";$table = mta::getInput();$mailTo = $table[0]$Subject = $table[1]$Message = $table[2] if(isset($Message)){ mail($mailTo,$Subject,$Message) mta::doReturn("Successfully"); } else { mta::doReturn("failed");}?> function getFromWebstire(value) if value ~= "ERROR" then outputChatBox(tostring(value)) end end Link to comment
./BlackBird# Posted February 7, 2014 Author Share Posted February 7, 2014 <?require "mta_sdk.php";$table = mta::getInput();$mailTo = $table[0];$Subject = $table[1];$Message = $table[2]; if(@mail($mailTo,$Subject,$Message)) { mta::doReturn("Successfully"); }else{ mta::doReturn("failed"); }?> time = { } addCommandHandler("SendMail", function (player, cmd, to, subject, massge) if (massge) or (string.find(to,"@")) then if not isTimer(time[player]) then function getFromWebstire(value) if value ~= "ERROR" and value == "Successfully" then outputChatBox("Successfully send message to email", player, 0, 255, 0) end end if (callRemote("http://nub.hj.cx/mail.php", getFromWebstire, to, subject, massge)) then outputChatBox("Send message to email: "..to.."...", player, 0, 255, 0) time[player] = setTimer(function () end,5 * 60000,1) else outputChatBox("ERROR failed to send message to email", player, 255, 0, 0) end else outputChatBox("You already sended message to email", player, 255, 0, 0) end else outputChatBox("Wrong. need to be use /SendMail to subject massge", player, 255, 0, 0) end end) مجرب و يشتغل تمام Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now