Witam robi?em sobie api sms zrobi?em cale i mi nie dzia?a dam wam kod mo?e komu? uda si? mi pom?c mianowicie podaj? poprawny kod wyskakuje ,?e jest bl?dny
[code]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
#define SMS_APIKEY "41edead6c88bc5533b69937a4"
#define SMS_NUMx "7136"
#define SMS_TRESCx "AA.SP"
#define SMS_NETTO "1"
if(dialogid == DIALOG_WYBIERZ)
{
if(!response)
{
SCM(playerid,COLOR_GREEN,"|info| Anulowa?e?(a?) do?adowanie portfela");
}
else // Je?eli kliknie 'Potwierd?'
{
ShowPlayerDialog(playerid, DIALOG_KUPIL, DIALOG_STYLE_INPUT, "Wy?lij SMS", "Wy?lij sms o tre?ci "SMS_TRESCx" na numer: "SMS_NUMx" (Koszt sms'a: 1,23z?), a nast?pnie wybierz: 'Dalej'", "Potwierd?", "Anuluj");
}
return 1;
}
if(dialogid == DIALOG_KUPIL && response)
{
new reqUrl[700];
format(reqUrl, 700, "http://admin.serverproject.pl/api/smsapi.php?key=%s&amount=$%s&code=$%s", SMS_APIKEY, SMS_NETTO, inputtext);
HTTP(playerid, HTTP_GET, reqUrl, "", "checkSMSAPI");
}
//////////////////////////////////////////////////////////////////
CMD:portfel(playerid, params[])
{
if(!Player[playerid][Registered])
{
SCM(playerid,C_RED,""WE" "R&... |