[Pomoc]SMS

Započeo ATL, Decembar 08, 2012, 12:04:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

ATL

Skripta koju koristim: CRP
Detaljan opis problema: Znaci kad kucam ID(0), i text eeeee, pogledam Inbox i vidim da mi nema te poruke....
Dio skripte:
if(dialogid == DIALOG_SMSTEXT)
{
if(response)
{
    new smstext = strval(inputtext);
    new giveplayerid;
    new idx;
    new tmp[256];
    new offset = idx;
    new length = strval(inputtext);
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = strval(inputtext);
idx++;
}
result[idx - offset] = EOS;
SCM(giveplayerid, COLOR_YELLOW, "Izgleda da si primio novu poruku.");
if(PlayerInfo[giveplayerid][pSMSSlot1] != 0 && PlayerInfo[giveplayerid][pSMSSlot2] != 0 && PlayerInfo[giveplayerid][pSMSSlot3] != 0 && PlayerInfo[giveplayerid][pSMSSlot4] != 0 && PlayerInfo[giveplayerid][pSMSSlot5] != 0) return SCM(playerid, COLOR_RED, "Taj korisnik ima pun Inbox, pokusajte kasnije!");
if(PlayerInfo[giveplayerid][pSMSSlot1] == 0)
{
            strmid(PlayerInfo[giveplayerid][pSMSText1], result, 0, smstext, 255);
PlayerInfo[giveplayerid][pSMSSlot1] = 1;
}
if(PlayerInfo[giveplayerid][pSMSSlot2] == 0)
{
strmid(PlayerInfo[giveplayerid][pSMSText2], result, 0, smstext, 255);
PlayerInfo[giveplayerid][pSMSSlot2] = 1;
}
if(PlayerInfo[giveplayerid][pSMSSlot3] == 0)
{
strmid(PlayerInfo[giveplayerid][pSMSText3], result, 0, smstext, 255);
PlayerInfo[giveplayerid][pSMSSlot3] = 1;
}
if(PlayerInfo[giveplayerid][pSMSSlot4] == 0)
{
strmid(PlayerInfo[giveplayerid][pSMSText4], result, 0, smstext, 255);
PlayerInfo[giveplayerid][pSMSSlot4] = 1;
}
if(PlayerInfo[giveplayerid][pSMSSlot5] == 0)
{
strmid(PlayerInfo[giveplayerid][pSMSText5], result, 0, smstext, 255);
PlayerInfo[giveplayerid][pSMSSlot5] = 1;
}
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Pa namesti da ti sprema poruku u zeljeno mesto

ATL

Citat: Blaeks poslato Decembar 08, 2012, 14:46:18 POSLE PODNE
Pa namesti da ti sprema poruku u zeljeno mesto

Stavio sam, pogledaj kod

Citat: A.T.L. poslato Decembar 08, 2012, 14:47:50 POSLE PODNE
Citat: Blaeks poslato Decembar 08, 2012, 14:46:18 POSLE PODNE
Pa namesti da ti sprema poruku u zeljeno mesto

Stavio sam, pogledaj kod
Pa koliko ja vidim , ti tu nemas greski, ne razumem kako ti pravi problem?

ATL

Citat: Blaeks poslato Decembar 08, 2012, 14:48:50 POSLE PODNE
Citat: A.T.L. poslato Decembar 08, 2012, 14:47:50 POSLE PODNE
Citat: Blaeks poslato Decembar 08, 2012, 14:46:18 POSLE PODNE
Pa namesti da ti sprema poruku u zeljeno mesto

Stavio sam, pogledaj kod
Pa koliko ja vidim , ti tu nemas greski, ne razumem kako ti pravi problem?

Gledao, kad si posaljem SMS, treba mi biti u Inboxu ta poruka, a nje nema

Daj kod koj prikazuje taj inbox mozda je tamo greska...

Mike Downhill × Scripter & PHP Developer × Balkan Ultimate Head Admin

Respect Vegas, Chris, Dude

ATL

if(dialogid == DIALOG_SMSOPCIJE)
{
if(response)
{
  if(listitem == 0)
    {
SPD(playerid, DIALOG_SMSBROJ, DIALOG_STYLE_INPUT,"SMS - Upisite broj telefona","Za SMS vam treba novac na mobilnoj kartici.\nUpisite broj telefona na kojeg zelite poslati SMS","Potvrdi","Odustani");
  }
  if(listitem == 1)
    {
    new string[256];
    format(string, sizeof(string), "|____________________SMS Inbox____________________|");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SMS 1: %s",PlayerInfo[playerid][pSMSText1]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SMS 2: %s",PlayerInfo[playerid][pSMSText2]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SMS 3: %s",PlayerInfo[playerid][pSMSText3]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SMS 4: %s",PlayerInfo[playerid][pSMSText4]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SMS 5: %s",PlayerInfo[playerid][pSMSText5]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "|____________________SMS Inbox____________________|");
SendClientMessage(playerid, COLOR_WHITE, string);
  }
}
}