Adding IRC into script but getting some errors . Need HELP
#1

PHP код:

IRCCMD
:commands(botidchannel[], user[], host[], params[])
{
    
#pragma unused params
    
if(IRC_IsOwner(botidchanneluser))
    {
        
LSay(channel,"2IRC Commands (At Owner level):");
        
LSay(channel,"2!say !pm !players !warn !mute !unmute !admin !jail");
        
LSay(channel,"2!adan !kick !freeze !unfreeze !spawn !ban !kill");
        
LSay(channel,"2!unban !nameban !rcon !text !ip !gmx !setlevel");
        return 
1;
    }
    if(
IRC_IsAdmin(botidchanneluser))
    {
        
LSay(channel,"2IRC Commands (At Admin level):");
        
LSay(channel,"2!say !pm !players !warn !mute !unmute !admin !jail");
        
LSay(channel,"2!adan !kick !freeze !unfreeze !spawn !ban !kill");
        
LSay(channel,"2!unban !nameban !rcon !text !ip !gmx");
        return 
1;
    }
    if(
IRC_IsOp(botidchanneluser))
    {
        
LSay(channel,"2IRC Commands (At Op level):");
        
LSay(channel,"2!say !pm !players !warn !mute !unmute !admin");
        
LSay(channel,"2!jail !adan !kick !freeze !unfreeze !spawn");
        return 
1;
    }
    if(
IRC_IsHalfop(botidchanneluser))
    {
        
LSay(channel,"2IRC Commands (At Half Op level):");
        
LSay(channel,"2!say !pm !players !warn !mute !unmute !admin");
        return 
1;
    }
    if(
IRC_IsVoice(botidchanneluser))
    {
        
LSay(channel,"2IRC Commands (At voice level):");
        
LSay(channel,"2!say !pm !players");
        return 
1;
    }
    return 
1;

PHP код:
C:\Users\\Downloads\Compressed\New folder (3)\samp037_svr_R1_win32 (2) - Copy\gamemodes\grab.pwn(28538) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\\Downloads\Compressed\New folder (3)\samp037_svr_R1_win32 (2) - Copy\gamemodes\grab.pwn(28538) : error 001expected token";"but found "[" 
The line is
PHP код:
IRCCMD:commands(botidchannel[], user[], host[], params[]) 
Reply
#2

Quote:
Originally Posted by sscarface
Посмотреть сообщение
PHP код:
IRCCMD:commands(botidchannel[], user[], host[], params[]) 
I dont see anything wrong with this line
are you sure you have added to IRC include?
Reply
#3

Yes bro.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)