how to fix this error when i added something
#1

when i added the server msg

Код:
C:\Users\aman\Desktop\SATDM~RP V14\filterscripts\ChatBot.pwn(180) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
line 180

pawn Код:
else
Reply
#2

show me full code after line 180.
Reply
#3

here it is
pawn Код:
else
    {
        for(everyone = 13; everyone <= 500; everyone++)
        {
            if(IsPlayerConnected(everyone) && BlockBot[everyone] == 0)
            {
                format(string, sizeof(string),"{00A6FF}%s{FFFFFF}[MSG]:{FF00D0}if you want to see anims{6FFF00}/anims ", playername);
                SendClientMessage(everyone,COLOR_WHITE,string);
            }
        }
   }
    return 1;
}
Reply
#4

Would you mind sharing the whole thing before else?
Reply
#5

Код:
    else
    {
        for(everyone = 13; everyone <= 500; everyone++)
        {
            if(IsPlayerConnected(everyone) && BlockBot[everyone] == 0)
            {
                format(string, sizeof(string),"{00A6FF}%s{FFFFFF}[MSG]:{FF00D0}if you want to see anims{6FFF00}/anims ", playername);
                SendClientMessage(everyone,COLOR_WHITE,string);
            }
        }
   }
    return 1;
}
now try
Reply
#6

here it is .....

pawn Код:
else
    {
        for(everyone = 12; everyone <= 500; everyone++)
        {
            if(IsPlayerConnected(everyone) && BlockBot[everyone] == 0)
            {
                format(string, sizeof(string),"{00A6FF}%s{FFFFFF}[MSG]:{FF00D0}Here are the list of cars Type{6FFF00}/cars ", playername);
                SendClientMessage(everyone,COLOR_WHITE,string);
            }
        }
    }
    else
    {
        for(everyone = 13; everyone <= 500; everyone++)
        {
            if(IsPlayerConnected(everyone) && BlockBot[everyone] == 0)
            {
                format(string, sizeof(string),"{00A6FF}%s{FFFFFF}[MSG]:{FF00D0}if you want to see anims{6FFF00}/anims ", playername);
                SendClientMessage(everyone,COLOR_WHITE,string);
            }
        }
   }
    return 1;
}
Reply
#7

did its work..
Reply
#8

yes it works thanks nabeel
Reply


Forum Jump:


Users browsing this thread: