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;
}
if(text[0] == '%')
if(strcmp("#",text[0],true) == 0)
|
Originally Posted by Rac3r
Код:
if(strcmp("#",text[0],true) == 0)
|
|
Originally Posted by borisblat
No, you didn't understand this well..
when i use this : if(text[0] == '#') this works, but when i do if(text[0] == '%') this won't work same as if i do if(strcmp("%',text[0],true) == 0) and Kyosaur!!, i just think it will be more confortable to do '%' '@' i used for adminchat |