29.03.2011, 06:18
ok so i've got (from the original script) something like this
and i copied it and edited to get something like this
the problem is im getting "loose identation" error whenever i add the new command (leaderlist) or actually,any other new command
is there something i gotta edit to "increase" commands number ?
thx in advance
Код:
if(strcmp(cmd, "/factionlist", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"*******************FACTIONS******************"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 1 | Faction Name: L.S.P.D |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 2 | Faction Name: F.B.I |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 3 | Faction Name: The Army |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 4 | Faction Name: L.S.M.D |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 5 | Faction Name: Los Sureсos |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 6 | Faction Name: La Famigla Sinatra|"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 7 | Faction Name: L.S Government |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 8 | Faction Name: Hitmen |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 9 | Faction Name: L.S News Channel |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 10 | Faction Name: L.S Taxi Cab Co. |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 11 | Faction Name: L.S Licensers |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 12 | Faction Name: L.S Fire Department |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 13 | Faction Name: Sons of Anarchy |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 14 | Faction Name: Inagawa |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 15 | Faction Name: Chornaya Bratva |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction ID: 16 | Faction Name: La Vice |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"*******************FACTIONS******************"); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s has Sent Chuck's Fact",d,m,y,h,mi,s,sendername); AdminLog(string); } return 1; }
Код:
if(strcmp(cmd, "/leaderlist", true) == 0) // By Dante { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"**************FACTION Leaders*************""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: L.S.P.D |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: F.B.I |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: The Army |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: L.S.M.D |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: Los Sureсos |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: La Famigla Sinatra|"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: L.S Government |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: Hitmen |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: L.S News Channel |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: L.S Taxi Cab Co. |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: L.S Licensers |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: L.S Fire Department |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: Sons of Anarchy |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: Inagawa |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: Chornaya Bratva |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"| Faction Leader: | Faction Name: La Vice |"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"**************FACTION Leaders*************"); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s has Sent Chuck's Fact",d,m,y,h,mi,s,sendername); AdminLog(string); } return 1; }
is there something i gotta edit to "increase" commands number ?
thx in advance