Jump to content

SirMacMoneysack

Resident
  • Posts

    8
  • Joined

  • Last visited

Posts posted by SirMacMoneysack

  1. Hi, a question i try to use the stockfolder option first time, i doubble check the rights of the Object and under "the next owner" still transfer is mark same to the script in it. But if i move this item to the marketplacelisting no stockfolder are build under this name - only a normal version folder are build - Where are my fault ?

     

  2. Hi i work on a project in this project i have to access a JSON DB with the same Searchparameters, the first 2 searches work fine, but the 3. one fails - the values are the same all times

     

    Thats the script i use :

     

    string auswertung(string mmsg)
    {
     integer i=0;
     string  temp="?";
     string aktMp="";
     do
     {
      aktMp=aktM+(string)i;
      temp=llJsonGetValue(db,[aktMp,"name"]);
      if(temp==JSON_INVALID)     // only for debug
          llWhisper(0,"JSON_INVALID");  // only for debug
      if(temp!=JSON_INVALID)
       {
        if(temp==mmsg)
        return llJsonGetValue(db,[aktMp,"antwort"]);   
       }   
      ++i;
     }   
     while(i<=12);  // Max Entry in DB per use
     return NOTF;
    }

     

    thats the values i use to start the script:

     

    mmsg = "Pause +"

    aktM="H1"

    NOTF="DSNF"

    db={"H112":{"name":"ENDE","antwort":"ende"},"H110":{"name":"SAVE","antwort":"Okay"},"H11":{"name":"Pause +","antwort":"P+"},"H13":{"name":"Pause -","antwort":"P-"},"H14":{"name":"Rahmen -","antwort":"1010"},"H15":{"name":"Reset","antwort":"1012"},"H16":{"name":"Rahmen +","antwort":"1011"},"H17":{"name":"Farbe","antwort":"1019"},"":{"name":"P+","antwort":""},"":{"name":"P+","antwort":""}}

     

    i checked all values doubble but cant see the problem, everytime i call this script - if works 2 times fine then it returns only JSON_INVALID until i reset it - then it works fine agin 2 times and the problem is back

    please tell me whats wrong with this code?

×
×
  • Create New...