• 0
Sign in to follow this  
Followers 0
Если Вы нашли ответ на вопрос, пожалуйста, пометьте необходимый ответ лучшим (галочка сбоку от сообщения) и поблагодарите автора этого ответа поднятием репутации (плюс в нижней правой части сообщения). Спасибо.
Подробнее:
FAQ по форуму
Как пометить ответ лучшим

Question

Помогите найти команду для создания промокода!
 

#define D_PROMO                         5414

	case D_PROMO:
			{
			    if(!response) return 1;
			    switch(listitem)
			    {
			        case 0: ShowPlayerDialog(playerid,D_PROMO+1,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 1","{FFFFFF}Âàì íåîáõîäèìî ïðèäóìàòü ïðîìîêîä\nÄëèíà ïðîìîêîäà äîëæíà áûòü 6 ñèìâîëîâ, ñîñòîÿùàÿ èç öèôð è áóêâ ëàòèíñêîãî àëôàâèòà\n\nÂâåäèòå ïðîìîêîä â ñòðî÷êó íèæå:","Äàëåå","Íàçàä");
					case 1: mysql_function_query(connects, "SELECT * FROM `promo` WHERE activate = '0' AND block = '0'", true, "ShowDPromo", "i", playerid);
					case 2: mysql_function_query(connects, "SELECT * FROM `promo` WHERE activate = '1'", true, "ShowAPromo", "i", playerid);
					case 3: mysql_function_query(connects, "SELECT * FROM `promo` WHERE block = '1'", true, "ShowBPromo", "i", playerid);
					case 4: ShowPlayerDialog(playerid,D_PROMO+2,DIALOG_STYLE_INPUT,"{F66B6D}Áëîêèðîâêà ïðîìîêîäà","{FFFFFF}Ââåäèòå íèæå ïðîìîêîä, êîòîðûé õîòèòå çàáëîêèðîâàòü:","Äàëåå","Íàçàä");
					case 5: ShowPlayerDialog(playerid,D_PROMO+3,DIALOG_STYLE_INPUT,"{F66B6D}Óäàëåíèå ïðîìîêîäà","{FFFFFF}Ââåäèòå íèæå ïðîìîêîä, êîòîðûé õîòèòå óäàëèòü:","Äàëåå","Íàçàä");
				}
			}
		case D_PROMO+2:
			{
			    if(!response)
			    {
			        return ShowPlayerDialog(playerid,D_PROMO,DIALOG_STYLE_LIST,"{F2E70F}Ìåíþ ïðîìîêîäîâ","\
				    {FFCC00}• {FFFFFF}Ñîçäàòü ïðîìîêîä \n\
				    {FFCC00}• {FFFFFF}Äåéñòâóþùèå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Àêòèâèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàòü ïðîìîêîä \n\
					{FFCC00}• {FFFFFF}Óäàëèòü ïðîìîêîä","Äàëåå","Âûõîä");
			    }
			    new qstring[128];
	     		mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo` WHERE `name`='%s'", inputtext);
	       	 	mysql_tquery(connects, qstring, "BlockPromo", "is", playerid,inputtext);
			}
		case D_PROMO+3:
			{
			    if(!response)
			    {
			        return ShowPlayerDialog(playerid,D_PROMO,DIALOG_STYLE_LIST,"{F2E70F}Ìåíþ ïðîìîêîäîâ","\
				    {FFCC00}• {FFFFFF}Ñîçäàòü ïðîìîêîä \n\
				    {FFCC00}• {FFFFFF}Äåéñòâóþùèå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Àêòèâèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàòü ïðîìîêîä \n\
					{FFCC00}• {FFFFFF}Óäàëèòü ïðîìîêîä","Äàëåå","Âûõîä");
			    }
	   		    new qstring[128];
	     		mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo` WHERE `name`='%s'", inputtext);
	       	 	mysql_tquery(connects, qstring, "DeletePromo", "is", playerid,inputtext);
			}
		case D_PROMO+1:
			{
			    if(!response)
			    {
			        ShowPlayerDialog(playerid,D_PROMO,DIALOG_STYLE_LIST,"{F2E70F}Ìåíþ ïðîìîêîäîâ","\
				    {FFCC00}• {FFFFFF}Ñîçäàòü ïðîìîêîä \n\
				    {FFCC00}• {FFFFFF}Äåéñòâóþùèå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Àêòèâèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàòü ïðîìîêîä \n\
					{FFCC00}• {FFFFFF}Óäàëèòü ïðîìîêîä","Äàëåå","Âûõîä");
					return 1;
			    }
			    new totalstring[712];
			    if(strlen(inputtext) < 1 || strlen(inputtext) > 16) return ShowPlayerDialog(playerid,D_PROMO+1,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 1","{FFFFFF}Âàì íåîáõîäèìî ïðèäóìàòü ïðîìîêîä\nÄëèíà ïðîìîêîäà äîëæíà áûòü 1-16 ñèìâîëîâ, ñîñòîÿùàÿ èç öèôð è áóêâ ëàòèíñêîãî àëôàâèòà\n\nÂâåäèòå ïðîìîêîä â ñòðî÷êó íèæå:","Äàëåå","Íàçàä");
				SetPVarString(playerid,"PROMO",inputtext);
				strcat(totalstring,"{FFFFFF}Òåïåðü íåîáõîäèìî ââåñòè òèï ïðèçà, êîëè÷åñòâî âûèãðûøà, êîëè÷åñòâî àêòèâàöèé\n\n{4AA9CF}Òèïû:\n");
				strcat(totalstring,"{FFFFFF}1. VIP àêêàóíò\n");
				strcat(totalstring,"2. Èãðîâàÿ âàëþòà\n");
				strcat(totalstring,"3. Donate Money\n\n");
				strcat(totalstring,"Åñëè óêàçàí òèï '1', òî â êà÷åñòâå êîëè÷åñòâà ïðèçà - óêàçûâàåòå äíè, â òå÷åíèè êîòîðûõ áóäåò äåéñòâîâàòü VIP àêêàóíò\n");
				strcat(totalstring,"Åñëè óêàçàíû òèïû '2' è '3', òî ñîîòâåòñòâåííî óêàçûâàåòå êîëè÷åñòâî èãðîâîé âàëþòû, è êðåäèòîâ äëÿ âûèãðûøà.\n\n");
				strcat(totalstring,"{F6F7D8}Óêàçûâàòü âñå çíà÷åíèÿ íóæíî ÷åðåç çàïÿòóþ!\n");
				strcat(totalstring,"Ïðèìåð: 1,30,10\n");
				strcat(totalstring,"Ãäå 1 - òèï(VIP), 30 - êîë-âî äíåé, 10 - ÷èñëî àêòèâàöèé");
				ShowPlayerDialog(playerid,D_PROMO+4,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 2",totalstring,"Äàëåå","Íàçàä");
			}
		case D_PROMO+4:
			{
			    new totalstring[512];
			    if(!response)
				{
				    strcat(totalstring,"{FFFFFF}Òåïåðü íåîáõîäèìî ââåñòè òèï ïðèçà, êîëè÷åñòâî âûèãðûøà, êîëè÷åñòâî àêòèâàöèé\n\n{4AA9CF}Òèïû:\n");
					strcat(totalstring,"{FFFFFF}1. VIP àêêàóíò\n");
					strcat(totalstring,"2. Èãðîâàÿ âàëþòà\n");
					strcat(totalstring,"3. Donate Money\n\n");
					strcat(totalstring,"Åñëè óêàçàí òèï '1', òî â êà÷åñòâå êîëè÷åñòâà ïðèçà - óêàçûâàåòå äíè, â òå÷åíèè êîòîðûõ áóäåò äåéñòâîâàòü VIP àêêàóíò\n");
					strcat(totalstring,"Åñëè óêàçàíû òèïû '2' è '3', òî ñîîòâåòñòâåííî óêàçûâàåòå êîëè÷åñòâî èãðîâîé âàëþòû, è êðåäèòîâ äëÿ âûèãðûøà.\n\n");
					strcat(totalstring,"{F6F7D8}Óêàçûâàòü âñå çíà÷åíèÿ íóæíî ÷åðåç çàïÿòóþ!\n");
					strcat(totalstring,"Ïðèìåð: 1,30,10\n");
					strcat(totalstring,"Ãäå 1 - òèï ïðèçà(VIP), 30 - êîëè÷åñòâî äíåé, 10 - ÷èñëî äîñòóïíûõ àêòèâàöèé ïðîìîêîäà");
					ShowPlayerDialog(playerid,D_PROMO+4,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 2",totalstring,"Äàëåå","Íàçàä");
					return 1;
				}
				new numb[3];
				if(sscanf(inputtext, "p<,>iii",numb[0],numb[1],numb[2]))
				{
				    strcat(totalstring,"{FFFFFF}Òåïåðü íåîáõîäèìî ââåñòè òèï ïðèçà, êîëè÷åñòâî âûèãðûøà, êîëè÷åñòâî àêòèâàöèé\n\n{4AA9CF}Òèïû:\n");
					strcat(totalstring,"{FFFFFF}1. VIP àêêàóíò\n");
					strcat(totalstring,"2. Èãðîâàÿ âàëþòà\n");
					strcat(totalstring,"3. Donate\n\n");
					strcat(totalstring,"Åñëè óêàçàí òèï '1', òî â êà÷åñòâå êîëè÷åñòâà ïðèçà - óêàçûâàåòå äíè, â òå÷åíèè êîòîðûõ áóäåò äåéñòâîâàòü VIP àêêàóíò\n");
					strcat(totalstring,"Åñëè óêàçàíû òèïû '2' è '3', òî ñîîòâåòñòâåííî óêàçûâàåòå êîëè÷åñòâî èãðîâîé âàëþòû, è êðåäèòîâ äëÿ âûèãðûøà.\n\n");
					strcat(totalstring,"{F6F7D8}Óêàçûâàòü âñå çíà÷åíèÿ íóæíî ÷åðåç çàïÿòóþ!\n");
					strcat(totalstring,"Ïðèìåð: 1,30,10\n");
					strcat(totalstring,"Ãäå 1 - òèï ïðèçà(VIP), 30 - êîëè÷åñòâî äíåé, 10 - ÷èñëî äîñòóïíûõ àêòèâàöèé ïðîìîêîäà");
					ShowPlayerDialog(playerid,D_PROMO+4,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 2",totalstring,"Äàëåå","Íàçàä");
					return 1;
				}
				SetPVarInt(playerid,"TYPEPROMO",numb[0]),SetPVarInt(playerid,"AMOUNTPROMO",numb[1]),SetPVarInt(playerid,"ACTIVATEPROMO",numb[2]);
	        	new qstring[128],promoname[16];
	         	GetPVarString(playerid, "PROMO", promoname, sizeof(promoname));
	         	mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo` WHERE `name`='%s'", promoname);
	       	 	mysql_tquery(connects, qstring, "CreatePromo", "is", playerid,promoname);
			}
 		case D_PROMO+5:
	       	{
	       	    if(!response) return cmd::mainmenu(playerid,"");
	       	 	new qstring[128];
	       	 	SetPVarString(playerid, "CODE", inputtext);
				mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo_activations` WHERE `account_id` = '%d' AND `name_promo`='%s'", PlayerInfo[playerid][pID], inputtext);
	            //mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo_activations` WHERE `account_id` = '%d'",PlayerInfo[playerid][pID]);
				mysql_tquery(connects, qstring, "CheckPromo", "i", playerid);

 

Share this post


Link to post

3 answers to this question

  • 0
9 часов назад, OGOGOGO сказал:

Помогите найти команду для создания промокода!
 


#define D_PROMO                         5414

	case D_PROMO:
			{
			    if(!response) return 1;
			    switch(listitem)
			    {
			        case 0: ShowPlayerDialog(playerid,D_PROMO+1,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 1","{FFFFFF}Âàì íåîáõîäèìî ïðèäóìàòü ïðîìîêîä\nÄëèíà ïðîìîêîäà äîëæíà áûòü 6 ñèìâîëîâ, ñîñòîÿùàÿ èç öèôð è áóêâ ëàòèíñêîãî àëôàâèòà\n\nÂâåäèòå ïðîìîêîä â ñòðî÷êó íèæå:","Äàëåå","Íàçàä");
					case 1: mysql_function_query(connects, "SELECT * FROM `promo` WHERE activate = '0' AND block = '0'", true, "ShowDPromo", "i", playerid);
					case 2: mysql_function_query(connects, "SELECT * FROM `promo` WHERE activate = '1'", true, "ShowAPromo", "i", playerid);
					case 3: mysql_function_query(connects, "SELECT * FROM `promo` WHERE block = '1'", true, "ShowBPromo", "i", playerid);
					case 4: ShowPlayerDialog(playerid,D_PROMO+2,DIALOG_STYLE_INPUT,"{F66B6D}Áëîêèðîâêà ïðîìîêîäà","{FFFFFF}Ââåäèòå íèæå ïðîìîêîä, êîòîðûé õîòèòå çàáëîêèðîâàòü:","Äàëåå","Íàçàä");
					case 5: ShowPlayerDialog(playerid,D_PROMO+3,DIALOG_STYLE_INPUT,"{F66B6D}Óäàëåíèå ïðîìîêîäà","{FFFFFF}Ââåäèòå íèæå ïðîìîêîä, êîòîðûé õîòèòå óäàëèòü:","Äàëåå","Íàçàä");
				}
			}
		case D_PROMO+2:
			{
			    if(!response)
			    {
			        return ShowPlayerDialog(playerid,D_PROMO,DIALOG_STYLE_LIST,"{F2E70F}Ìåíþ ïðîìîêîäîâ","\
				    {FFCC00}• {FFFFFF}Ñîçäàòü ïðîìîêîä \n\
				    {FFCC00}• {FFFFFF}Äåéñòâóþùèå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Àêòèâèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàòü ïðîìîêîä \n\
					{FFCC00}• {FFFFFF}Óäàëèòü ïðîìîêîä","Äàëåå","Âûõîä");
			    }
			    new qstring[128];
	     		mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo` WHERE `name`='%s'", inputtext);
	       	 	mysql_tquery(connects, qstring, "BlockPromo", "is", playerid,inputtext);
			}
		case D_PROMO+3:
			{
			    if(!response)
			    {
			        return ShowPlayerDialog(playerid,D_PROMO,DIALOG_STYLE_LIST,"{F2E70F}Ìåíþ ïðîìîêîäîâ","\
				    {FFCC00}• {FFFFFF}Ñîçäàòü ïðîìîêîä \n\
				    {FFCC00}• {FFFFFF}Äåéñòâóþùèå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Àêòèâèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàòü ïðîìîêîä \n\
					{FFCC00}• {FFFFFF}Óäàëèòü ïðîìîêîä","Äàëåå","Âûõîä");
			    }
	   		    new qstring[128];
	     		mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo` WHERE `name`='%s'", inputtext);
	       	 	mysql_tquery(connects, qstring, "DeletePromo", "is", playerid,inputtext);
			}
		case D_PROMO+1:
			{
			    if(!response)
			    {
			        ShowPlayerDialog(playerid,D_PROMO,DIALOG_STYLE_LIST,"{F2E70F}Ìåíþ ïðîìîêîäîâ","\
				    {FFCC00}• {FFFFFF}Ñîçäàòü ïðîìîêîä \n\
				    {FFCC00}• {FFFFFF}Äåéñòâóþùèå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Àêòèâèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàííûå ïðîìîêîäû \n\
					{FFCC00}• {FFFFFF}Çàáëîêèðîâàòü ïðîìîêîä \n\
					{FFCC00}• {FFFFFF}Óäàëèòü ïðîìîêîä","Äàëåå","Âûõîä");
					return 1;
			    }
			    new totalstring[712];
			    if(strlen(inputtext) < 1 || strlen(inputtext) > 16) return ShowPlayerDialog(playerid,D_PROMO+1,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 1","{FFFFFF}Âàì íåîáõîäèìî ïðèäóìàòü ïðîìîêîä\nÄëèíà ïðîìîêîäà äîëæíà áûòü 1-16 ñèìâîëîâ, ñîñòîÿùàÿ èç öèôð è áóêâ ëàòèíñêîãî àëôàâèòà\n\nÂâåäèòå ïðîìîêîä â ñòðî÷êó íèæå:","Äàëåå","Íàçàä");
				SetPVarString(playerid,"PROMO",inputtext);
				strcat(totalstring,"{FFFFFF}Òåïåðü íåîáõîäèìî ââåñòè òèï ïðèçà, êîëè÷åñòâî âûèãðûøà, êîëè÷åñòâî àêòèâàöèé\n\n{4AA9CF}Òèïû:\n");
				strcat(totalstring,"{FFFFFF}1. VIP àêêàóíò\n");
				strcat(totalstring,"2. Èãðîâàÿ âàëþòà\n");
				strcat(totalstring,"3. Donate Money\n\n");
				strcat(totalstring,"Åñëè óêàçàí òèï '1', òî â êà÷åñòâå êîëè÷åñòâà ïðèçà - óêàçûâàåòå äíè, â òå÷åíèè êîòîðûõ áóäåò äåéñòâîâàòü VIP àêêàóíò\n");
				strcat(totalstring,"Åñëè óêàçàíû òèïû '2' è '3', òî ñîîòâåòñòâåííî óêàçûâàåòå êîëè÷åñòâî èãðîâîé âàëþòû, è êðåäèòîâ äëÿ âûèãðûøà.\n\n");
				strcat(totalstring,"{F6F7D8}Óêàçûâàòü âñå çíà÷åíèÿ íóæíî ÷åðåç çàïÿòóþ!\n");
				strcat(totalstring,"Ïðèìåð: 1,30,10\n");
				strcat(totalstring,"Ãäå 1 - òèï(VIP), 30 - êîë-âî äíåé, 10 - ÷èñëî àêòèâàöèé");
				ShowPlayerDialog(playerid,D_PROMO+4,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 2",totalstring,"Äàëåå","Íàçàä");
			}
		case D_PROMO+4:
			{
			    new totalstring[512];
			    if(!response)
				{
				    strcat(totalstring,"{FFFFFF}Òåïåðü íåîáõîäèìî ââåñòè òèï ïðèçà, êîëè÷åñòâî âûèãðûøà, êîëè÷åñòâî àêòèâàöèé\n\n{4AA9CF}Òèïû:\n");
					strcat(totalstring,"{FFFFFF}1. VIP àêêàóíò\n");
					strcat(totalstring,"2. Èãðîâàÿ âàëþòà\n");
					strcat(totalstring,"3. Donate Money\n\n");
					strcat(totalstring,"Åñëè óêàçàí òèï '1', òî â êà÷åñòâå êîëè÷åñòâà ïðèçà - óêàçûâàåòå äíè, â òå÷åíèè êîòîðûõ áóäåò äåéñòâîâàòü VIP àêêàóíò\n");
					strcat(totalstring,"Åñëè óêàçàíû òèïû '2' è '3', òî ñîîòâåòñòâåííî óêàçûâàåòå êîëè÷åñòâî èãðîâîé âàëþòû, è êðåäèòîâ äëÿ âûèãðûøà.\n\n");
					strcat(totalstring,"{F6F7D8}Óêàçûâàòü âñå çíà÷åíèÿ íóæíî ÷åðåç çàïÿòóþ!\n");
					strcat(totalstring,"Ïðèìåð: 1,30,10\n");
					strcat(totalstring,"Ãäå 1 - òèï ïðèçà(VIP), 30 - êîëè÷åñòâî äíåé, 10 - ÷èñëî äîñòóïíûõ àêòèâàöèé ïðîìîêîäà");
					ShowPlayerDialog(playerid,D_PROMO+4,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 2",totalstring,"Äàëåå","Íàçàä");
					return 1;
				}
				new numb[3];
				if(sscanf(inputtext, "p<,>iii",numb[0],numb[1],numb[2]))
				{
				    strcat(totalstring,"{FFFFFF}Òåïåðü íåîáõîäèìî ââåñòè òèï ïðèçà, êîëè÷åñòâî âûèãðûøà, êîëè÷åñòâî àêòèâàöèé\n\n{4AA9CF}Òèïû:\n");
					strcat(totalstring,"{FFFFFF}1. VIP àêêàóíò\n");
					strcat(totalstring,"2. Èãðîâàÿ âàëþòà\n");
					strcat(totalstring,"3. Donate\n\n");
					strcat(totalstring,"Åñëè óêàçàí òèï '1', òî â êà÷åñòâå êîëè÷åñòâà ïðèçà - óêàçûâàåòå äíè, â òå÷åíèè êîòîðûõ áóäåò äåéñòâîâàòü VIP àêêàóíò\n");
					strcat(totalstring,"Åñëè óêàçàíû òèïû '2' è '3', òî ñîîòâåòñòâåííî óêàçûâàåòå êîëè÷åñòâî èãðîâîé âàëþòû, è êðåäèòîâ äëÿ âûèãðûøà.\n\n");
					strcat(totalstring,"{F6F7D8}Óêàçûâàòü âñå çíà÷åíèÿ íóæíî ÷åðåç çàïÿòóþ!\n");
					strcat(totalstring,"Ïðèìåð: 1,30,10\n");
					strcat(totalstring,"Ãäå 1 - òèï ïðèçà(VIP), 30 - êîëè÷åñòâî äíåé, 10 - ÷èñëî äîñòóïíûõ àêòèâàöèé ïðîìîêîäà");
					ShowPlayerDialog(playerid,D_PROMO+4,DIALOG_STYLE_INPUT,"Ñîçäàíèå ïðîìîêîäà | {FE6060}Øàã: 2",totalstring,"Äàëåå","Íàçàä");
					return 1;
				}
				SetPVarInt(playerid,"TYPEPROMO",numb[0]),SetPVarInt(playerid,"AMOUNTPROMO",numb[1]),SetPVarInt(playerid,"ACTIVATEPROMO",numb[2]);
	        	new qstring[128],promoname[16];
	         	GetPVarString(playerid, "PROMO", promoname, sizeof(promoname));
	         	mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo` WHERE `name`='%s'", promoname);
	       	 	mysql_tquery(connects, qstring, "CreatePromo", "is", playerid,promoname);
			}
 		case D_PROMO+5:
	       	{
	       	    if(!response) return cmd::mainmenu(playerid,"");
	       	 	new qstring[128];
	       	 	SetPVarString(playerid, "CODE", inputtext);
				mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo_activations` WHERE `account_id` = '%d' AND `name_promo`='%s'", PlayerInfo[playerid][pID], inputtext);
	            //mysql_format(connects, qstring, sizeof(qstring), "SELECT * FROM `promo_activations` WHERE `account_id` = '%d'",PlayerInfo[playerid][pID]);
				mysql_tquery(connects, qstring, "CheckPromo", "i", playerid);

 

Команда pmenu, чтобы она заработала впиши себя сюда #define FD1 или же там их 4 любой на выбор там есть FD1,FD2,FD3,FD4.

Share this post


Link to post
  • 0

Ответ нашел, спасибо.

 

Заметка от DEST , создано

Если нашли лучший ответ вне данного форума, рекомендуется оставить ответ в этой теме. Если же нашли ответ в этой теме, необходимо отметить его галочкой сбоку.

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • nazikUA
      By nazikUA
      Добрый вечер, перевел мод на 0.3.7 и сервер крашит когда я подхожу к какому либо маппингу, можно ли как то это исправить?