Guest User

Untitled

a guest
Dec 8th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 21.83 KB | None | 0 0
  1. //Dieses Script wurde von Azure und Easy am 28.04.2012 geschrieben
  2. public OnGameModeInit()
  3.  
  4. {
  5.  
  6.         print("\n--------------------------------------");
  7.  
  8.         print(" Report System von Azure & Easy");
  9.  
  10.         print("--------------------------------------\n");
  11.  
  12.         return 1;
  13.  
  14. }
  15.  
  16.  
  17.  
  18.  
  19.  
  20. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  21.  
  22. {
  23.  
  24.         if(dialogid == DIALOG_REPORT)
  25.  
  26.         {
  27.  
  28.             if(response == 1)
  29.  
  30.             {
  31.  
  32.                     if(listitem == 0)
  33.  
  34.                     {
  35.  
  36.                         ShowPlayerDialog(playerid,DIALOG_BESCHWERDE,DIALOG_STYLE_INPUT,"Report System - Beschwerde","Gib bitte nun deine Beschwerde ein:","Bestätigen","Abbrechen");
  37.  
  38.                         return 1;
  39.  
  40.                     }
  41.  
  42.                     if(listitem == 1)
  43.  
  44.                     {
  45.  
  46.                         ShowPlayerDialog(playerid,DIALOG_SUPPORT,DIALOG_STYLE_INPUT,"Report System - Support","Gib bitte nun deine Frage ein:","Bestätigen","Abbrechen");
  47.  
  48.                         return 1;
  49.  
  50.                     }
  51.  
  52.                     if(listitem == 2)
  53.  
  54.                     {
  55.  
  56.                         ShowPlayerDialog(playerid,DIALOG_BUG,DIALOG_STYLE_INPUT,"Report System - Bug Meldung","Gib bitte nun den Bug ein:","Bestätigen","Abbrechen");
  57.  
  58.                         return 1;
  59.  
  60.                     }
  61.  
  62.                 }
  63.  
  64.                 if(response == 0)
  65.  
  66.                 {
  67.  
  68.                     ShowPlayerDialog(playerid,DIALOG_ABBRECHEN,DIALOG_STYLE_MSGBOX,"Report System - Abbrechen","Du verlässt nun das Report System!","Bestätigen","Zurück");
  69.  
  70.                 }
  71.  
  72.         }
  73.  
  74.         if(dialogid == DIALOG_BESCHWERDE)
  75.  
  76.         {
  77.  
  78.             if(response == 1)
  79.  
  80.             {
  81.  
  82.                     new string[128];
  83.  
  84.                         SendClientMessage(playerid,orange,"Dein Beschwerde wurde abgespeichert und wurde an die Administratoren weitergeleitet!");
  85.  
  86.                         format(string,sizeof(string),"[REPORT-SYSTEM]: %s hat eine Beschwerde eingesendet: [ %s ]",Name(playerid),inputtext);
  87.  
  88.                         AdminNachricht(rot,string);
  89.  
  90.                         SetPVarInt(playerid,"Report",1);
  91.  
  92.                 }
  93.  
  94.                 if(response == 0)
  95.  
  96.                 {
  97.  
  98.                     ShowPlayerDialog(playerid,DIALOG_ABBRECHEN,DIALOG_STYLE_MSGBOX,"Report System - Abbrechen","Du verlässt nun das Report System!","Bestätigen","Zurück");
  99.  
  100.                 }
  101.  
  102.         }
  103.  
  104.         if(dialogid == DIALOG_SUPPORT)
  105.  
  106.         {
  107.  
  108.             if(response == 1)
  109.  
  110.             {
  111.  
  112.                     new string[128];
  113.  
  114.                         SendClientMessage(playerid,orange,"Deine Support Anfrage wurde abgespeichert und wurde an die Administratoren weitergeleitet!");
  115.  
  116.                         format(string,sizeof(string),"[REPORT-SYSTEM]: %s hat eine Support Anfrage eingesendet: [ %s ]",Name(playerid),inputtext);
  117.  
  118.                         AdminNachricht(rot,string);
  119.  
  120.                         SetPVarInt(playerid,"Report",1);
  121.  
  122.                 }
  123.  
  124.                 if(response == 0)
  125.  
  126.                 {
  127.  
  128.                     ShowPlayerDialog(playerid,DIALOG_ABBRECHEN,DIALOG_STYLE_MSGBOX,"Report System - Abbrechen","Du verlässt nun das Report System!","Bestätigen","Zurück");
  129.  
  130.                 }
  131.  
  132.         }
  133.  
  134.         if(dialogid == DIALOG_BUG)
  135.  
  136.         {
  137.  
  138.             if(response == 1)
  139.  
  140.             {
  141.  
  142.                     new string[128];
  143.  
  144.                         SendClientMessage(playerid,orange,"Deine Bug Meldung wurde abgespeichert und wurde an die Administratoren weitergeleitet!");
  145.  
  146.                         format(string,sizeof(string),"[REPORT-SYSTEM]: %s hat eine Bug Meldung eingesendet: [ %s ]",Name(playerid),inputtext);
  147.  
  148.                         AdminNachricht(rot,string);
  149.  
  150.                         SetPVarInt(playerid,"Report",1);
  151.  
  152.                 }
  153.  
  154.                 if(response == 0)
  155.  
  156.                 {
  157.  
  158.                     ShowPlayerDialog(playerid,DIALOG_ABBRECHEN,DIALOG_STYLE_MSGBOX,"Report System - Abbrechen","Du verlässt nun das Report System!","Bestätigen","Zurück");
  159.  
  160.                 }
  161.  
  162.         }
  163.  
  164.         if(dialogid == DIALOG_ABBRECHEN)
  165.  
  166.         {
  167.  
  168.             if(response == 0)
  169.  
  170.             {
  171.  
  172.                         ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_LIST,"Report System","Beschwerde\nSupport\nBug Meldung","Weiter","Abbrechen");
  173.  
  174.             }
  175.  
  176.         }
  177.  
  178.         return 1;
  179.  
  180. }
  181.  
  182.  
  183.  
  184. ocmd:report(playerid,params[])
  185.  
  186. {
  187.  
  188.         ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_LIST,"Report System","Beschwerde\nSupport\nBug Meldung","Weiter","Abbrechen");
  189.  
  190.         return 1;
  191.  
  192. }
  193.  
  194.  
  195.  
  196. ocmd:oreport(playerid,params[])
  197.  
  198. {
  199.  
  200.         new pID, string[128];
  201.  
  202.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,rot,"Du bist kein Admin und hast nicht das Recht Reports zu öffnen!");
  203.  
  204.         if(sscanf(params,"u",pID)) return SendClientMessage(playerid,weiß,"/oreport [ID]");
  205.  
  206.         format(string,sizeof(string),"** Administrator %s hat deinen Report geöffnet und bearbeitet ihn nun. Der Live Chat wurde aktiviert, nutze /rc!",Name(playerid));
  207.  
  208.         SendClientMessage(pID,orange,string);
  209.  
  210.         SendClientMessage(playerid,orange,"Du hast den Report geöffnet und beginnst den Live Chat, du schreibst mit /ra!");
  211.  
  212.         SetPVarInt(playerid,"LiveChat",1);
  213.  
  214.         SetPVarInt(pID,"LiveChat",1);
  215.  
  216.         SetPVarInt(pID,"Report",0);
  217.  
  218.         SetPVarInt(playerid,"RPartner",pID);
  219.  
  220.         SetPVarInt(pID,"RPartner",playerid);
  221.  
  222.         return 1;
  223.  
  224. }
  225.  
  226. ocmd:sreport(playerid,params[])
  227.  
  228. {
  229.  
  230.         new pID, string[128];
  231.  
  232.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,rot,"Du bist kein Admin und hast nicht das Recht Reports zu schließen!");
  233.  
  234.         if(sscanf(params,"u",pID)) return SendClientMessage(playerid,weiß,"/sreport [ID]");
  235.  
  236.         format(string,sizeof(string),"** Administrator %s hat den Livechat beendet.",Name(playerid));
  237.  
  238.         SendClientMessage(pID,orange,string);
  239.  
  240.         SendClientMessage(playerid,orange,"Du hast den Report geschlossen!");
  241.  
  242.         SetPVarInt(playerid,"LiveChat",0);
  243.  
  244.         SetPVarInt(pID,"LiveChat",0);
  245.  
  246.         DeletePVar(playerid,"RPartner");
  247.  
  248.         DeletePVar(pID,"RPartner");
  249.  
  250.         return 1;
  251.  
  252. }
  253.  
  254. ocmd:lreport(playerid,params[])
  255.  
  256. {
  257.  
  258.         new pID, string[128];
  259.  
  260.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,rot,"Du bist kein Admin und hast nicht das Recht Reports zu schließen!");
  261.  
  262.         if(sscanf(params,"u",pID)) return SendClientMessage(playerid,weiß,"/lreport [ID]");
  263.  
  264.         format(string,sizeof(string),"** Administrator %s hat deinen Report gelöscht!",Name(playerid));
  265.  
  266.         SendClientMessage(pID,orange,string);
  267.  
  268.         SendClientMessage(playerid,orange,"Du hast den Report gelöscht!");
  269.  
  270.         DeletePVar(pID,"Report");
  271.  
  272.         return 1;
  273.  
  274. }
  275.  
  276. ocmd:rc(playerid,params[])
  277.  
  278. {
  279.  
  280.         new text[128],string[128],string1[128];
  281.  
  282.     if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,rot,"Du bist in keinem Live Chat!");
  283.  
  284.     if(sscanf(params,"s",text)) return SendClientMessage(playerid,weiß,"/rc [text]");
  285.  
  286.     format(string,sizeof(string),"[LIVECHAT]: %s: %s",Name(playerid),text);
  287.  
  288.     SendClientMessage(GetPVarInt(playerid,"RPartner"),orange,string);
  289.  
  290.     format(string1,sizeof(string1),"[LIVECHAT]: %s: %s",Name(playerid),text);
  291.  
  292.     SendClientMessage(playerid,orange,string1);
  293.  
  294.         return 1;
  295.  
  296. }
  297.  
  298. ocmd:ra(playerid,params[])
  299.  
  300. {
  301.  
  302.         new text[128],string[128],string1[128];
  303.  
  304.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,rot,"Du bist kein Admin und hast nicht das Recht den Admin Report Chat zu nutzen!");
  305.  
  306.     if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,rot,"Du bist in keinem Live Chat!");
  307.  
  308.     if(sscanf(params,"s",text)) return SendClientMessage(playerid,weiß,"/ra [text]");
  309.  
  310.     format(string,sizeof(string),"[LIVECHAT]: %s: %s",Name(playerid),text);
  311.  
  312.     SendClientMessage(GetPVarInt(playerid,"RPartner"),orange,string);
  313.  
  314.     format(string1,sizeof(string1),"[LIVECHAT]: %s: %s",Name(playerid),text);
  315.  
  316.     SendClientMessage(playerid,orange,string1);
  317.  
  318.         return 1;
  319.  
  320. }
  321.  
  322. ocmd:reports(playerid,params[])
  323.  
  324. {
  325.  
  326.         #pragma unused params
  327.  
  328.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,rot,"Du bist kein Admin und hast nicht das Recht Reports zu sehen!");
  329.  
  330.     for(new i = 0; i < MAX_PLAYERS; i++)
  331.  
  332.         {
  333.  
  334.             if(GetPVarInt(i,"Report") == 1 && IsPlayerConnected(i))
  335.  
  336.             {
  337.  
  338.                 new string[128];
  339.  
  340.                 format(string,sizeof(string),"[REPORT-SYSTEM][OFFEN] Name: %s | ID: %i",Name(i), i);
  341.  
  342.                 SendClientMessage(playerid,weiß,string);
  343.  
  344.             }
  345.  
  346.         }
  347.  
  348.     return 1;
  349.  
  350. }
  351.  
  352. ocmd:reporthilfe(playerid,params[])
  353.  
  354. {
  355.  
  356.         #pragma unused params
  357.  
  358.         if(!IsPlayerAdmin(playerid))
  359.  
  360.         {
  361.  
  362.             SendClientMessage(playerid,weiß,"Report Hilfe: /report /rc");
  363.  
  364.             return 1;
  365.  
  366.         }
  367.  
  368.         else
  369.  
  370.         {
  371.  
  372.             SendClientMessage(playerid,weiß,"Report Hilfe: /report /rc");
  373.  
  374.             SendClientMessage(playerid,weiß,"Report Hilfe: /sreport /oreport /lreport /reports");
  375.  
  376.             return 1;
  377.  
  378.         }
  379.  
  380. }
  381.  
  382.  
  383.  
  384. stock AdminNachricht(farbe,text[])
  385.  
  386. {
  387.  
  388.     for(new i = 0; i < MAX_PLAYERS; i++)
  389.  
  390.         {
  391.  
  392.                 if(IsPlayerConnected(i) && IsPlayerAdmin(i))
  393.  
  394.                 {
  395.  
  396.                         SendClientMessage(i,farbe,text);
  397.  
  398.                 }
  399.  
  400.         }
  401.  
  402.         return 1;
  403.  
  404. }
  405.  
  406.  
  407.  
  408. stock Name(playerid)
  409.  
  410. {
  411.  
  412.         new name[MAX_PLAYER_NAME];
  413.  
  414.         GetPlayerName(playerid,name,sizeof(name));
  415.  
  416.         return name;
  417.  
  418. }
  419.  
  420.  
  421.  
  422. stock sscanf(string[], format[], {Float,_}:...)
  423.  
  424. {
  425.  
  426.         #if defined isnull
  427.  
  428.                 if (isnull(string))
  429.  
  430.         #else
  431.  
  432.                 if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  433.  
  434.         #endif
  435.  
  436.                 {
  437.  
  438.                         return format[0];
  439.  
  440.                 }
  441.  
  442.         #pragma tabsize 4
  443.  
  444.         new
  445.  
  446.                 formatPos = 0,
  447.  
  448.                 stringPos = 0,
  449.  
  450.                 paramPos = 2,
  451.  
  452.                 paramCount = numargs(),
  453.  
  454.                 delim = ' ';
  455.  
  456.         while (string[stringPos] && string[stringPos] <= ' ')
  457.  
  458.         {
  459.  
  460.                 stringPos++;
  461.  
  462.         }
  463.  
  464.         while (paramPos < paramCount && string[stringPos])
  465.  
  466.         {
  467.  
  468.                 switch (format[formatPos++])
  469.  
  470.                 {
  471.  
  472.                         case '\0':
  473.  
  474.                         {
  475.  
  476.                                 return 0;
  477.  
  478.                         }
  479.  
  480.                         case 'i', 'd':
  481.  
  482.                         {
  483.  
  484.                                 new
  485.  
  486.                                         neg = 1,
  487.  
  488.                                         num = 0,
  489.  
  490.                                         ch = string[stringPos];
  491.  
  492.                                 if (ch == '-')
  493.  
  494.                                 {
  495.  
  496.                                         neg = -1;
  497.  
  498.                                         ch = string[++stringPos];
  499.  
  500.                                 }
  501.  
  502.                                 do
  503.  
  504.                                 {
  505.  
  506.                                         stringPos++;
  507.  
  508.                                         if ('0' <= ch <= '9')
  509.  
  510.                                         {
  511.  
  512.                                                 num = (num * 10) + (ch - '0');
  513.  
  514.                                         }
  515.  
  516.                                         else
  517.  
  518.                                         {
  519.  
  520.                                                 return -1;
  521.  
  522.                                         }
  523.  
  524.                                 }
  525.  
  526.                                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  527.  
  528.                                 setarg(paramPos, 0, num * neg);
  529.  
  530.                         }
  531.  
  532.                         case 'h', 'x':
  533.  
  534.                         {
  535.  
  536.                                 new
  537.  
  538.                                         num = 0,
  539.  
  540.                                         ch = string[stringPos];
  541.  
  542.                                 do
  543.  
  544.                                 {
  545.  
  546.                                         stringPos++;
  547.  
  548.                                         switch (ch)
  549.  
  550.                                         {
  551.  
  552.                                                 case 'x', 'X':
  553.  
  554.                                                 {
  555.  
  556.                                                         num = 0;
  557.  
  558.                                                         continue;
  559.  
  560.                                                 }
  561.  
  562.                                                 case '0' .. '9':
  563.  
  564.                                                 {
  565.  
  566.                                                         num = (num << 4) | (ch - '0');
  567.  
  568.                                                 }
  569.  
  570.                                                 case 'a' .. 'f':
  571.  
  572.                                                 {
  573.  
  574.                                                         num = (num << 4) | (ch - ('a' - 10));
  575.  
  576.                                                 }
  577.  
  578.                                                 case 'A' .. 'F':
  579.  
  580.                                                 {
  581.  
  582.                                                         num = (num << 4) | (ch - ('A' - 10));
  583.  
  584.                                                 }
  585.  
  586.                                                 default:
  587.  
  588.                                                 {
  589.  
  590.                                                         return -1;
  591.  
  592.                                                 }
  593.  
  594.                                         }
  595.  
  596.                                 }
  597.  
  598.                                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  599.  
  600.                                 setarg(paramPos, 0, num);
  601.  
  602.                         }
  603.  
  604.                         case 'c':
  605.  
  606.                         {
  607.  
  608.                                 setarg(paramPos, 0, string[stringPos++]);
  609.  
  610.                         }
  611.  
  612.                         case 'f':
  613.  
  614.                         {
  615.  
  616.  
  617.  
  618.                                 new changestr[16], changepos = 0, strpos = stringPos;
  619.  
  620.                                 while(changepos < 16 && string[strpos] && string[strpos] != delim)
  621.  
  622.                                 {
  623.  
  624.                                         changestr[changepos++] = string[strpos++];
  625.  
  626.                                 }
  627.  
  628.                                 changestr[changepos] = '\0';
  629.  
  630.                                 setarg(paramPos,0,_:floatstr(changestr));
  631.  
  632.                         }
  633.  
  634.                         case 'p':
  635.  
  636.                         {
  637.  
  638.                                 delim = format[formatPos++];
  639.  
  640.                                 continue;
  641.  
  642.                         }
  643.  
  644.                         case '\'':
  645.  
  646.                         {
  647.  
  648.                                 new
  649.  
  650.                                         end = formatPos - 1,
  651.  
  652.                                         ch;
  653.  
  654.                                 while ((ch = format[++end]) && ch != '\'') {}
  655.  
  656.                                 if (!ch)
  657.  
  658.                                 {
  659.  
  660.                                         return -1;
  661.  
  662.                                 }
  663.  
  664.                                 format[end] = '\0';
  665.  
  666.                                 if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  667.  
  668.                                 {
  669.  
  670.                                         if (format[end + 1])
  671.  
  672.                                         {
  673.  
  674.                                                 return -1;
  675.  
  676.                                         }
  677.  
  678.                                         return 0;
  679.  
  680.                                 }
  681.  
  682.                                 format[end] = '\'';
  683.  
  684.                                 stringPos = ch + (end - formatPos);
  685.  
  686.                                 formatPos = end + 1;
  687.  
  688.                         }
  689.  
  690.                         case 'u':
  691.  
  692.                         {
  693.  
  694.                                 new
  695.  
  696.                                         end = stringPos - 1,
  697.  
  698.                                         id = 0,
  699.  
  700.                                         bool:num = true,
  701.  
  702.                                         ch;
  703.  
  704.                                 while ((ch = string[++end]) && ch != delim)
  705.  
  706.                                 {
  707.  
  708.                                         if (num)
  709.  
  710.                                         {
  711.  
  712.                                                 if ('0' <= ch <= '9')
  713.  
  714.                                                 {
  715.  
  716.                                                         id = (id * 10) + (ch - '0');
  717.  
  718.                                                 }
  719.  
  720.                                                 else
  721.  
  722.                                                 {
  723.  
  724.                                                         num = false;
  725.  
  726.                                                 }
  727.  
  728.                                         }
  729.  
  730.                                 }
  731.  
  732.                                 if (num && IsPlayerConnected(id))
  733.  
  734.                                 {
  735.  
  736.                                         setarg(paramPos, 0, id);
  737.  
  738.                                 }
  739.  
  740.                                 else
  741.  
  742.                                 {
  743.  
  744.                                         #if !defined foreach
  745.  
  746.                                                 #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  747.  
  748.                                                 #define __SSCANF_FOREACH__
  749.  
  750.                                         #endif
  751.  
  752.                                         string[end] = '\0';
  753.  
  754.                                         num = false;
  755.  
  756.                                         new
  757.  
  758.                                                 name[MAX_PLAYER_NAME];
  759.  
  760.                                         id = end - stringPos;
  761.  
  762.                                         foreach (Player, playerid)
  763.  
  764.                                         {
  765.  
  766.                                                 GetPlayerName(playerid, name, sizeof (name));
  767.  
  768.                                                 if (!strcmp(name, string[stringPos], true, id))
  769.  
  770.                                                 {
  771.  
  772.                                                         setarg(paramPos, 0, playerid);
  773.  
  774.                                                         num = true;
  775.  
  776.                                                         break;
  777.  
  778.                                                 }
  779.  
  780.                                         }
  781.  
  782.                                         if (!num)
  783.  
  784.                                         {
  785.  
  786.                                                 setarg(paramPos, 0, INVALID_PLAYER_ID);
  787.  
  788.                                         }
  789.  
  790.                                         string[end] = ch;
  791.  
  792.                                         #if defined __SSCANF_FOREACH__
  793.  
  794.                                                 #undef foreach
  795.  
  796.                                                 #undef __SSCANF_FOREACH__
  797.  
  798.                                         #endif
  799.  
  800.                                 }
  801.  
  802.                                 stringPos = end;
  803.  
  804.                         }
  805.  
  806.                         case 's', 'z':
  807.  
  808.                         {
  809.  
  810.                                 new
  811.  
  812.                                         i = 0,
  813.  
  814.                                         ch;
  815.  
  816.                                 if (format[formatPos])
  817.  
  818.                                 {
  819.  
  820.                                         while ((ch = string[stringPos++]) && ch != delim)
  821.  
  822.                                         {
  823.  
  824.                                                 setarg(paramPos, i++, ch);
  825.  
  826.                                         }
  827.  
  828.                                         if (!i)
  829.  
  830.                                         {
  831.  
  832.                                                 return -1;
  833.  
  834.                                         }
  835.  
  836.                                 }
  837.  
  838.                                 else
  839.  
  840.                                 {
  841.  
  842.                                         while ((ch = string[stringPos++]))
  843.  
  844.                                         {
  845.  
  846.                                                 setarg(paramPos, i++, ch);
  847.  
  848.                                         }
  849.  
  850.                                 }
  851.  
  852.                                 stringPos--;
  853.  
  854.                                 setarg(paramPos, i, '\0');
  855.  
  856.                         }
  857.  
  858.                         default:
  859.  
  860.                         {
  861.  
  862.                                 continue;
  863.  
  864.                         }
  865.  
  866.                 }
  867.  
  868.                 while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  869.  
  870.                 {
  871.  
  872.                         stringPos++;
  873.  
  874.                 }
  875.  
  876.                 while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  877.  
  878.                 {
  879.  
  880.                         stringPos++;
  881.  
  882.                 }
  883.  
  884.                 paramPos++;
  885.  
  886.         }
  887.  
  888.         do
  889.  
  890.         {
  891.  
  892.                 if ((delim = format[formatPos++]) > ' ')
  893.  
  894.                 {
  895.  
  896.                         if (delim == '\'')
  897.  
  898.                         {
  899.  
  900.                                 while ((delim = format[formatPos++]) && delim != '\'') {}
  901.  
  902.                         }
  903.  
  904.                         else if (delim != 'z')
  905.  
  906.                         {
  907.  
  908.                                 return delim;
  909.  
  910.                         }
  911.  
  912.                 }
  913.  
  914.         }
  915.  
  916.         while (delim > ' ');
  917.  
  918.         return 0;
  919.  
  920. }
Add Comment
Please, Sign In to add comment