21.03.2010, 07:26
Hi, I tried to create a command that only people from the clan union will can see,
the thing is, i want that it will be when i type '%' and not when i type '#'
I tried to change it but it won't work when I do
how can i fix this?
thakns
Код:
if(text[0] == '#')
{
new unionname[256], clanname[256], iname[MAX_PLAYER_NAME], iclanname[256], iunionname[256];
if(dini_Isset(file, "Clan"))
{
clanname = GetPlayerClanName(playerid);
format(cfile, sizeof(cfile), "%s/Clans/%s.txt", AdminNameMinor, clanname);
if(dini_Isset(cfile, "Union"))
{
unionname = dini_Get(cfile, "Union");
format(string, sizeof(string), "[Union - %s] %s[id:%d]: %s", unionname, name, playerid, text[1]);
for(new i = 0; i<MAX_PLAYERS; i++)
{
GetPlayerName(i, iname, sizeof(iname));
format(file, sizeof(file), "%s/Users/%s.txt", AdminNameMinor, iname);
if(dini_Isset(file, "Clan"))
{
iclanname = GetPlayerClanName(i);
format(cfile, sizeof(cfile), "%s/Clans/%s.txt", AdminNameMinor, iclanname);
if(dini_Isset(cfile, "Union"))
{
iunionname = dini_Get(cfile, "Union");
if(strcmp(iunionname,unionname, true) == 0)
SCM(i, UNION, string);
}
}
}
}
}
return 0;
}
I tried to change it but it won't work when I do
Код:
if(text[0] == '%')
thakns

