SA-MP Forums Archive
Adding IRC into script but getting some errors . Need HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Adding IRC into script but getting some errors . Need HELP (/showthread.php?tid=586874)



Adding IRC into script but getting some errors . Need HELP - sscarface - 25.08.2015

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[]) 



Re: Adding IRC into script but getting some errors . Need HELP - DoDler - 25.08.2015

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?


Re: Adding IRC into script but getting some errors . Need HELP - sscarface - 25.08.2015

Yes bro.