[FilterScript] Air Advertising Board System [Dynamic]
#20

Quote:
Originally Posted by Pagle
Посмотреть сообщение
Код HTML:
CMD:editbtext(playerid, params[])
{
	new idx,string[128],text[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Tqven unda shexvidet tqven eqauntze rom gamoiyenot commandebi.");
	if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GREY, "Tqven Ar Xart an authorized to use this command.");
	//if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "Tqven Ar Xart Admin Dutyze.");
 	if(!sscanf(params, "is[128]", idx, text)) return SendClientMessage(playerid, COLOR_RED, "{00C0FF}Minishneba:{FFFFFF} /editbtext [boardid] [text]");
    if(!BoardInfo[idx][bModel]) return SendClientMessage(playerid, COLOR_GREY, "Invalid board id.");
	format(BoardInfo[idx][bTextM],sizeof(text),"{2641FE}%s",text);
	SetDynamicObjectMaterialText(BoardInfo[idx][bBoard],0,BoardInfo[idx][bTextM],OBJECT_MATERIAL_SIZE_256x128,"Arial",BoardInfo[idx][bFontSiz],1,0x000000FF,0xFFFFFFFF,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
	format(string,256,"You set board id %d text To: %s",idx,BoardInfo[idx][bTextM]);
	SendClientMessage(playerid,COLOR_ALIREZA,string);
	SaveBoards();
 	return 1;
}
Command does not work and says that there is no such id advertising, help please.
oh yes change this cmd to :
PHP код:
CMD:editbtext(playeridparams[])
{
    new 
idx,string[128],text[128];
    if(!
IsPlayerLoggedIn(playerid)) return SendClientMessage(playeridCOLOR_GREY"Tqven unda shexvidet tqven eqauntze rom gamoiyenot commandebi.");
    if(
PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playeridCOLOR_GREY"Tqven Ar Xart an authorized to use this command.");
    
//if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "Tqven Ar Xart Admin Dutyze.");
     
if(sscanf(params"is[128]"idxtext)) return SendClientMessage(playeridCOLOR_RED"{00C0FF}Minishneba:{FFFFFF} /editbtext [boardid] [text]");
    if(!
BoardInfo[idx][bModel]) return SendClientMessage(playeridCOLOR_GREY"Invalid board id.");
    
format(BoardInfo[idx][bTextM],sizeof(text),"{2641FE}%s",text);
    
SetDynamicObjectMaterialText(BoardInfo[idx][bBoard],0,BoardInfo[idx][bTextM],OBJECT_MATERIAL_SIZE_256x128,"Arial",BoardInfo[idx][bFontSiz],1,0x000000FF,0xFFFFFFFF,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    
format(string,256,"You set board id %d text To: %s",idx,BoardInfo[idx][bTextM]);
    
SendClientMessage(playerid,COLOR_ALIREZA,string);
    
SaveBoards();
     return 
1;

Reply


Messages In This Thread
Air Advertising Board System [Dynamic] - by Airblog - 29.04.2015, 11:02
Re: Air Advertising Board System [Dynamic] - by tantri - 29.04.2015, 11:20
Re: Air Advertising Board System [Dynamic] - by MOSensei - 29.04.2015, 11:24
Re: Air Advertising Board System [Dynamic] - by NNek - 29.04.2015, 11:55
Re: Air Advertising Board System [Dynamic] - by Airblog - 29.04.2015, 12:11
Re: Air Advertising Board System [Dynamic] - by Emp3r0r - 29.04.2015, 12:24
Re: Air Advertising Board System [Dynamic] - by HaRdiiZin - 29.04.2015, 12:29
Re: Air Advertising Board System [Dynamic] - by Lucky™ - 29.04.2015, 13:57
Re: Air Advertising Board System [Dynamic] - by arlindi - 29.04.2015, 15:29
Re: Air Advertising Board System [Dynamic] - by MOSensei - 29.04.2015, 15:33
Re: Air Advertising Board System [Dynamic] - by Airblog - 29.04.2015, 16:02
Re: Air Advertising Board System [Dynamic] - by Clergy - 29.04.2015, 16:06
Re : Air Advertising Board System [Dynamic] - by Ivory - 29.04.2015, 17:01
Re: Air Advertising Board System [Dynamic] - by AzaMx - 29.04.2015, 20:57
Re: Air Advertising Board System [Dynamic] - by giorgosdim12 - 02.05.2015, 06:16
Re: Air Advertising Board System [Dynamic] - by KayJ - 02.05.2015, 07:40
Re: Air Advertising Board System [Dynamic] - by Airblog - 20.05.2015, 08:51
Re: Air Advertising Board System [Dynamic] - by iAnonymous - 23.05.2015, 15:15
Re: Air Advertising Board System [Dynamic] - by Pagle - 23.05.2015, 17:28
Re: Air Advertising Board System [Dynamic] - by Airblog - 24.05.2015, 09:58
Re: Air Advertising Board System [Dynamic] - by quochuy - 24.05.2015, 10:11
Re: Air Advertising Board System [Dynamic] - by LackerCool - 24.05.2015, 15:29
Re: Air Advertising Board System [Dynamic] - by Airblog - 30.03.2016, 06:48
Re: Air Advertising Board System [Dynamic] - by binsieunhan123 - 30.03.2016, 11:33
Re: Air Advertising Board System [Dynamic] - by Zorono - 03.04.2016, 11:46
Re: Air Advertising Board System [Dynamic] - by MBilal - 06.04.2016, 15:05
Re: Air Advertising Board System [Dynamic] - by Immortal99 - 16.06.2016, 01:45

Forum Jump:


Users browsing this thread: 5 Guest(s)