I need Help Please !!
#1

PLZ ANYBODY TELL ME HOW TO FIX THIS

ERRORS


Code OF The CMDs
Код:
CMD:mmafk(playerid,params[]) {
   if(PlayerInfo[playerid][MMLevel] >= 1) {
   TogglePlayerControllable(playerid,0);
   new string[128]; format(string,sizeof(string),"[MM MEMBER]:%s Is Now Away From The Keyboard! ", pName(playerid) );
   SendClientMessageToAll(blue1, string);
   SendClientMessage(playerid, green, "Type {FF0000}/bcback {33FF33}When You Back.");
   } else return SendClientMessage(playerid,red,"ERROR: You need to be BC Member Rank 1 to use this command");
   return 1;
//-=-=-=- Back
CMD:mmback(playerid,params[]) {     <ERROR LINE (51380)
   if(PlayerInfo[playerid][MMLevel] >= 1) {
   TogglePlayerControllable(playerid,1);
   new string[128]; format(string,sizeof(string),"[MM MEMBER]:%s Now Back! ", pName(playerid) );
   SendClientMessageToAll(blue1, string);
   } else return SendClientMessage(playerid,red,"ERROR: You need to be MM Member Rank 1 to use this command");
   return 1;
}

NOTE: When I Remove This CMD another CMD From Same Clan (mm) Say Same Problems
Reply
#2

you were mising one closing bracket try the following code
PHP код:
CMD:mmafk(playerid,params[]) {
   if(
PlayerInfo[playerid][MMLevel] >= 1) {
   
TogglePlayerControllable(playerid,0);
   new 
string[128]; format(string,sizeof(string),"[MM MEMBER]:%s Is Now Away From The Keyboard! "pName(playerid) );
   
SendClientMessageToAll(blue1string);
   
SendClientMessage(playeridgreen"Type {FF0000}/bcback {33FF33}When You Back.");
   } else return 
SendClientMessage(playerid,red,"ERROR: You need to be BC Member Rank 1 to use this command");
   return 
1;
}
//-=-=-=- Back
CMD:mmback(playerid,params[]) {     
   if(
PlayerInfo[playerid][MMLevel] >= 1) {
   
TogglePlayerControllable(playerid,1);
   new 
string[128]; format(string,sizeof(string),"[MM MEMBER]:%s Now Back! "pName(playerid) );
   
SendClientMessageToAll(blue1string);
   } else return 
SendClientMessage(playerid,red,"ERROR: You need to be MM Member Rank 1 to use this command");
   return 
1;

Reply
#3

You're not closing the preceding command. Placing a closing curly bracket, will fix it: '}'.
Reply
#4

Still Not Work -__-
Reply
#5

Try this:
PHP код:
CMD:mmafk(playerid,params[]) 
{
    if(
PlayerInfo[playerid][MMLevel] >= 1
    {
       
TogglePlayerControllable(playerid,0);
       new 
string[128]; 
         
format(string,sizeof(string),"[MM MEMBER]:%s Is Now Away From The Keyboard! "pName(playerid) );
       
SendClientMessageToAll(blue1string);
       
SendClientMessage(playeridgreen"Type {FF0000}/bcback {33FF33}When You Back.");
       return 
1;
    } 
    else return 
SendClientMessage(playerid,red,"ERROR: You need to be BC Member Rank 1 to use this command");
}
CMD:mmback(playerid,params[]) 
{
    if(
PlayerInfo[playerid][MMLevel] >= 1
    {
       
TogglePlayerControllable(playerid,1);
       new 
string[128]; 
       
format(string,sizeof(string),"[MM MEMBER]:%s Now Back! "pName(playerid) );
       
SendClientMessageToAll(blue1string);
       return 
1;
    } 
    else return 
SendClientMessage(playerid,red,"ERROR: You need to be MM Member Rank 1 to use this command");

Reply
#6

Thanks oMa37 But Please Tell Me What You've Done Because all The Clan Commands Are Like That
Reply
#7

Remove
Код:
 
  } else return SendClientMessage(playerid,red,"ERROR: You need to be MM Member Rank 1 to use this command");
Out of the command & put a ending brace '}'
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)