Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // //
- // //
- // //
- // //
- // MarkzD //
- // //
- // //
- // //
- // //
- #include <a_samp>
- #include <mxINI>
- #include <zcmd>
- #define red 0xFF0000AA
- #define COLOR_DRED 0xFF0000AA
- new PAccount[MAX_PLAYERS];//Account saved or not
- enum pInfo
- {
- pPass[64],//Player saved password
- pAdmin,//Admin or not
- pVip,//Vip or not
- pMoney,//PlayerMoneys
- pScore,//Score
- }
- new Player[MAX_PLAYERS][pInfo];
- public OnGameModeInit()
- {
- SetGameModeText("M-Admin");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print("M-Admin system 1.0");
- print("----------------------------------\n");
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- if(PAccount[playerid] == 1)// If account saved
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"{FF0000}Login","{FFFFFF}Hello!\nYour account registered in server\nPlease,type your password below:","Yep","Exit");// Ïîêàçûâàåì äèàëîã âõîäà â èãðó. Ñòèëü äèàëîãà âûñòàâëÿåì íà ââîä òåêñòà.
- }
- else// If account nor saved
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{00FF00}Register","{FFFFFF}Hello!\nYour account not registered!\nType password below:","Yep","Exit");// Ïîêàçûâàåì äèàëîã ðåãèñòðàöèè. Ñòèëü äèàëîãà âûñòàâëÿåì íà ââîä òåêñòà.
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new playername[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid,playername,sizeof(playername));
- format(string,sizeof(string),"players/%s.ini", playername);
- if(fexist(string))
- {
- PAccount[playerid] = 1;
- }
- else
- {
- PAccount[playerid] = 0;
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- COMMAND:pmenu(playerid,params[])
- {
- ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Player Menu","Account stats","Okay","Exit");
- return 1;
- }
- CMD:ban(playerid,params[])
- {
- if(Player[playerid][pAdmin] >= 2)
- {
- new tmp[256], tmp2[256], Index;
- tmp = strtok(params,Index), tmp2 = strtok(params,Index);
- if(isnull(params)) return SendClientMessage(playerid, red, "Usage: /ban [playerid] [reason]"); //Check If Player Does Not Added "Reason and the ID"
- new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
- player1 = strval(tmp); // << player1 = ID of The Player
- if(!IsPlayerConnected(player1)) return SendClientMessage(playerid,red,"Player not connected.."); //<< Check If Player Connected Or Not
- GetPlayerName(player1, playername, sizeof(playername)); //get Selected Player Name
- GetPlayerName(playerid, adminname, sizeof(adminname)); //get Admin Name Who Use This command
- if(isnull(tmp2))
- {
- format(string,sizeof(string),"M-Admin:Administartor %s has ban %s | Reason: %s",adminname,playername,params[2]); //adminname = the player Who Use This command || playername = the Player who Going To Be kicked || params[2] = The Reason Of The Kick
- SendClientMessageToAll(red,string); // Send Message To all Players.
- Ban(player1);
- }
- else
- {
- SendClientMessage(playerid,0xFF0000FF,"Error: You are not admin!");
- }
- }
- return 1;
- }
- CMD:kick(playerid,params[])
- {
- if(Player[playerid][pAdmin] >= 1)
- {
- new tmp[256], tmp2[256], Index;
- tmp = strtok(params,Index), tmp2 = strtok(params,Index);
- if(isnull(params)) return SendClientMessage(playerid, red, "Usage: /kick [playerid] [reason]"); //Check If Player Does Not Added "Reason and the ID"
- new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
- player1 = strval(tmp); // << player1 = ID of The Player
- if(!IsPlayerConnected(player1)) return SendClientMessage(playerid,red,"Player not connected"); //<< Check If Player Connected Or Not
- GetPlayerName(player1, playername, sizeof(playername)); //get Selected Player Name
- GetPlayerName(playerid, adminname, sizeof(adminname)); //get Admin Name Who Use This command
- format(string,sizeof(string),"M-Admin:Administartor %s has kick %s | Reason: %s",adminname,playername,params[2]); //adminname = the player Who Use This command || playername = the Player who Going To Be kicked || params[2] = The Reason Of The Kick
- SendClientMessageToAll(red,string); // Send Message To all Players.
- Kick(player1);
- }
- else
- {
- SendClientMessage(playerid,0xFF0000FF,"Error: You are not admin!");
- }
- return 1;
- }
- CMD:cc(playerid,params[])
- {
- if(Player[playerid][pAdmin] >= 1)
- {
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"");
- SendClientMessageToAll(0xFFFFFFFF,"M-Admin: Administartor cleared chat!");
- }
- else
- {
- SendClientMessage(playerid,0xFF0000FF,"Error: You are not admin!");
- }
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"{FF0000}Login","{FFFFFF}Hello!\nYour account registered in server\nPlease,type your password below:","Yep","Exit");// Ïîêàçûâàåì äèàëîã âõîäà â èãðó.
- return 1;
- }
- new pass[64];
- strmid(pass,inputtext,0,strlen(inputtext),64);
- OnPlayerLogin(playerid,pass);
- }
- else
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"{FF0000}Login","{FFFFFF}Hello!\nYour account registered in server\nPlease,type your password below:","Yep","Exit");// Ïîêàçûâàåì äèàëîã âõîäà â èãðó.
- }
- }
- if(dialogid == 2)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{00FF00}Register","{FFFFFF}Hello!\nYour account not registered!\nType password below:","Yep","Exit");// Ïîêàçûâàåì äèàëîã ðåãèñòðàöèè.
- return 1;
- }
- new pass[64];
- strmid(pass,inputtext,0,strlen(inputtext),64);
- OnPlayerRegister(playerid,pass);
- }
- else
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{00FF00}Register","{FFFFFF}Hello!\nYour account not registered!\nType password below:","Yep","Exit");// Ïîêàçûâàåì äèàëîã ðåãèñòðàöèè.
- }
- }
- if(response)
- {
- switch(dialogid)
- {
- case 3:
- {
- switch(listitem)
- {
- case 0:
- {
- new strings[1000];
- new cash = GetPlayerMoney(playerid);
- new score = GetPlayerScore(playerid);
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(strings,sizeof(strings),"{FFFFFF}Name: {00BCFF}%s\n{FFFFFF}Score: {00BCFF}%d\n{FFFFFF}Money: {00BCFF}%d",name,score,cash);
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX,"Account status",strings,"Okay","");
- }
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- stock SavePlayer(playerid)
- {
- new string[64];
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "players/%s.ini", playername);
- new iniFile = ini_openFile(string);//
- ini_setString(iniFile,"Pass",Player[playerid][pPass]);//
- ini_setInteger(iniFile,"Admin",Player[playerid][pAdmin]);//
- ini_setInteger(iniFile,"Vip",Player[playerid][pVip]);//
- ini_setInteger(iniFile,"Money",Player[playerid][pMoney]);//
- ini_setInteger(iniFile,"Score",Player[playerid][pScore]);//
- ini_closeFile(iniFile);// Çàêðûâàåì ôàéë
- }
- forward OnPlayerRegister(playerid, password[]);
- public OnPlayerRegister(playerid, password[])//
- {
- if(IsPlayerConnected(playerid))//
- {
- new string[64];//
- new playername[MAX_PLAYER_NAME];//
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string,sizeof(string), "players/%s.ini", playername);
- new iniFile = ini_createFile(string);
- if(iniFile < 0)
- {
- iniFile = ini_openFile(string);
- }
- if(iniFile >= 0)
- {
- strmid(Player[playerid][pPass],password,0,strlen(password),255);
- ini_setString(iniFile,"Pass",Player[playerid][pPass]);
- ini_setInteger(iniFile,"Admin",0);
- ini_setInteger(iniFile,"Vip",0);
- ini_setInteger(iniFile,"Money",5000);
- ini_setInteger(iniFile,"Score",0);
- ini_closeFile(iniFile);
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"{FF0000}Login","{FFFFFF}Hello!\nYour account registered in server\nPlease,type your password below:","Yep","Exit");
- }
- }
- return 1;
- }
- forward OnPlayerLogin(playerid,password[]);
- public OnPlayerLogin(playerid,password[])
- {
- if(IsPlayerConnected(playerid))
- {
- new string[64];
- new pass[64];
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string,sizeof(string), "players/%s.ini", playername);
- new iniFile = ini_openFile(string);
- ini_getString(iniFile,"Pass",pass,64);
- ini_getInteger(iniFile,"Admin",Player[playerid][pAdmin]);
- ini_getInteger(iniFile,"Vip",Player[playerid][pVip]);
- ini_getInteger(iniFile,"Money",Player[playerid][pMoney]);
- ini_getInteger(iniFile,"Score",Player[playerid][pScore]);
- GivePlayerMoney(playerid,Player[playerid][pMoney]);
- if(strcmp(pass,password,true) == 0)
- {
- ini_getString(iniFile,"Pass",Player[playerid][pPass],64);
- ini_closeFile(iniFile);
- }
- else
- {
- ini_closeFile(iniFile);
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"{FF0000}Login","{FFFFFF}Hello!\nYour account registered in server\nPlease,type your {00FF00}correctly {FFFFFF}password below:","Yep","Exit");
- return 1;
- }
- SendClientMessage(playerid,0xFF00000,"Welcome to our server!");
- }
- return 1;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- stock GetPlayerNameEx(playerid)
- {
- new Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
- return Name;
- }
- stock sscanf(string[], format[], {Float,_}:...)
- {
- #if defined isnull
- if (isnull(string))
- #else
- if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
- #endif
- {
- return format[0];
- }
- #pragma tabsize 4
- new
- formatPos = 0,
- stringPos = 0,
- paramPos = 2,
- paramCount = numargs(),
- delim = ' ';
- while (string[stringPos] && string[stringPos] <= ' ')
- {
- stringPos++;
- }
- while (paramPos < paramCount && string[stringPos])
- {
- switch (format[formatPos++])
- {
- case '\0':
- {
- return 0;
- }
- case 'i', 'd':
- {
- new
- neg = 1,
- num = 0,
- ch = string[stringPos];
- if (ch == '-')
- {
- neg = -1;
- ch = string[++stringPos];
- }
- do
- {
- stringPos++;
- if ('0' <= ch <= '9')
- {
- num = (num * 10) + (ch - '0');
- }
- else
- {
- return -1;
- }
- }
- while ((ch = string[stringPos]) > ' ' && ch != delim);
- setarg(paramPos, 0, num * neg);
- }
- case 'h', 'x':
- {
- new
- num = 0,
- ch = string[stringPos];
- do
- {
- stringPos++;
- switch (ch)
- {
- case 'x', 'X':
- {
- num = 0;
- continue;
- }
- case '0' .. '9':
- {
- num = (num << 4) | (ch - '0');
- }
- case 'a' .. 'f':
- {
- num = (num << 4) | (ch - ('a' - 10));
- }
- case 'A' .. 'F':
- {
- num = (num << 4) | (ch - ('A' - 10));
- }
- default:
- {
- return -1;
- }
- }
- }
- while ((ch = string[stringPos]) > ' ' && ch != delim);
- setarg(paramPos, 0, num);
- }
- case 'c':
- {
- setarg(paramPos, 0, string[stringPos++]);
- }
- case 'f':
- {
- new changestr[16], changepos = 0, strpos = stringPos;
- while(changepos < 16 && string[strpos] && string[strpos] != delim)
- {
- changestr[changepos++] = string[strpos++];
- }
- changestr[changepos] = '\0';
- setarg(paramPos,0,_:floatstr(changestr));
- }
- case 'p':
- {
- delim = format[formatPos++];
- continue;
- }
- case '\'':
- {
- new
- end = formatPos - 1,
- ch;
- while ((ch = format[++end]) && ch != '\'') {}
- if (!ch)
- {
- return -1;
- }
- format[end] = '\0';
- if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
- {
- if (format[end + 1])
- {
- return -1;
- }
- return 0;
- }
- format[end] = '\'';
- stringPos = ch + (end - formatPos);
- formatPos = end + 1;
- }
- case 'u':
- {
- new
- end = stringPos - 1,
- id = 0,
- bool:num = true,
- ch;
- while ((ch = string[++end]) && ch != delim)
- {
- if (num)
- {
- if ('0' <= ch <= '9')
- {
- id = (id * 10) + (ch - '0');
- }
- else
- {
- num = false;
- }
- }
- }
- if (num && IsPlayerConnected(id))
- {
- setarg(paramPos, 0, id);
- }
- else
- {
- #if !defined foreach
- #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
- #define __SSCANF_FOREACH__
- #endif
- string[end] = '\0';
- num = false;
- new
- name[MAX_PLAYER_NAME];
- id = end - stringPos;
- foreach (Player, playerid)
- {
- GetPlayerName(playerid, name, sizeof (name));
- if (!strcmp(name, string[stringPos], true, id))
- {
- setarg(paramPos, 0, playerid);
- num = true;
- break;
- }
- }
- if (!num)
- {
- setarg(paramPos, 0, INVALID_PLAYER_ID);
- }
- string[end] = ch;
- #if defined __SSCANF_FOREACH__
- #undef foreach
- #undef __SSCANF_FOREACH__
- #endif
- }
- stringPos = end;
- }
- case 's', 'z':
- {
- new
- i = 0,
- ch;
- if (format[formatPos])
- {
- while ((ch = string[stringPos++]) && ch != delim)
- {
- setarg(paramPos, i++, ch);
- }
- if (!i)
- {
- return -1;
- }
- }
- else
- {
- while ((ch = string[stringPos++]))
- {
- setarg(paramPos, i++, ch);
- }
- }
- stringPos--;
- setarg(paramPos, i, '\0');
- }
- default:
- {
- continue;
- }
- }
- while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
- {
- stringPos++;
- }
- while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
- {
- stringPos++;
- }
- paramPos++;
- }
- do
- {
- if ((delim = format[formatPos++]) > ' ')
- {
- if (delim == '\'')
- {
- while ((delim = format[formatPos++]) && delim != '\'') {}
- }
- else if (delim != 'z')
- {
- return delim;
- }
- }
- }
- while (delim > ' ');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment