Loop Filtering (+REP) [It's quick pls help]
#1

Whenever i'm using the command /conline it shows 1000 messages with "[] (ID: X)"
What should I do?

PHP код:
CMD:conline(playerid,params[]){
LoggedCMD
if(!strcmp(DB[param[0]][Clan],"None")) return MSG(playerid,C_RED,"[Error] {FF9999}You're not a clan member.");
format(String,sizeof(String),"---------------- [%s] ----------------",DB[playerid][Clan]);
MSG(playerid,C_NICE,String);
for(new 
i=0;i<MAX_PLAYERS;i++){
if(!
strcmp(DB[i][Clan],DB[playerid][Clan])){
format(String,sizeof(String),"[%s] %s (ID: %i)",DB[i][CRank],GetName(i),i);
MSG(playerid,C_NICE2,String);}}
return 
1;} 
Reply
#2

PHP код:
CMD:conline(playerid,params[]){
LoggedCMD
if(!strcmp(DB[param[0]][Clan],"None")) return MSG(playerid,C_RED,"[Error] {FF9999}You're not a clan member.");
format(String,sizeof(String),"---------------- [%s] ----------------",DB[playerid][Clan]);
MSG(playerid,C_NICE,String);
for(new 
i=0;i<MAX_PLAYERS;i++){
if(!
strcmp(DB[i][Clan],DB[playerid][Clan])){
format(String,sizeof(String),"[%s] %s (ID: %i)",DB[i][CRank],GetName(i),i);
if(
== playerid){
MSG(playerid,C_NICE2,String);}}}
return 
1;} 
Reply
#3

PHP код:
CMD:conline(playerid,params[])
{
    
LoggedCMD
    
if(!strcmp(DB[param[0]][Clan],"None")) return MSG(playerid,C_RED,"[Error] {FF9999}You're not a clan member.");
    
format(String,sizeof(String),"---------------- [%s] ----------------",DB[playerid][Clan]);
    
MSG(playerid,C_NICE,String);
    for(new 
i=0;i<MAX_PLAYERS;i++)
    {
        if(
IsPlayerOnline(i))
        {
            if(!
strcmp(DB[i][Clan],DB[playerid][Clan]))
            {
                
format(String,sizeof(String),"[%s] %s (ID: %i)",DB[i][CRank],GetName(i),i);
                
MSG(playerid,C_NICE2,String);
            }
        }
        
    }
    return 
1;

@UltraScripter You seem to be drunk when i look at your reply...

@Lirbo I have made a mistake i wrote "isPlayerOnline" instead of "IsPlayerOnline", i am used to the first letter of a function being a lowercase letter.
Reply
#4

Ty m8
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)