IRCCMD
#1

That command gives me many errors and i tried to fix.

PHP код:
IRCCMD:admins(botidchannel[], user[], host[], params[])
{
   new 
IsOnline 0;
   new 
wordss[400];
   foreach(
Playeri)
   {
      if (
pData[i][Admin] >= 3)
      {
              
format(wordsssizeof(wordss),  "9,2 Admin %s (ID: %d) [Level %d]\n",GetName(i), ipData[i][Admin]);
              
IsOnline++;
              
IRC_GroupSay(groupIDIRC_CHANNELwordss);
        }
   }
   if (
IsOnline == 0)
   
IRC_GroupSay(groupIDIRC_CHANNEL"No admins are online!");
   else
   {
        
format(wordsssizeof(wordss), "11,2 %d RightX Admin Online",IsOnline);
          
IRC_GroupSay(groupIDIRC_CHANNELwordss);
          new 
msg[134],msg1[1323];
            
format(msgsizeof(msg), "*Online Admins Player List Requested by %s ~ Total %d"userIsOnline);
            
SendClientMessageToAll(0xFFB400FFmsg);
        
format(msg1sizeof(msg1), "0,10 *Online Admins List Requested by %s ~ Total %d",user,IsOnline);
          
IRC_GroupSay(groupIDIRC_CHANNELmsg1);
   }
   return 
1;

Errors:

Код:
D:\samp folder\RightX\gamemodes\TestG.pwn(2927) : warning 219: local variable "msg" shadows a variable at a preceding level
D:\samp folder\RightX\gamemodes\TestG.pwn(4034) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp folder\RightX\gamemodes\TestG.pwn(4034) : error 001: expected token: ";", but found "["
D:\samp folder\RightX\gamemodes\TestG.pwn(4039) : error 010: invalid function or declaration
D:\samp folder\RightX\gamemodes\TestG.pwn(4041) : error 010: invalid function or declaration
D:\samp folder\RightX\gamemodes\TestG.pwn(4048) : error 010: invalid function or declaration
D:\samp folder\RightX\gamemodes\TestG.pwn(4050) : error 010: invalid function or declaration
D:\samp folder\RightX\gamemodes\TestG.pwn(4055) : error 021: symbol already defined: "format"
D:\samp folder\RightX\gamemodes\TestG.pwn(4060) : error 010: invalid function or declaration
D:\samp folder\RightX\gamemodes\TestG.pwn(4068) : warning 203: symbol is never used: "IsOnline"
D:\samp folder\RightX\gamemodes\TestG.pwn(4068) : warning 203: symbol is never used: "msg"
D:\samp folder\RightX\gamemodes\TestG.pwn(4068) : warning 203: symbol is never used: "msg1"
D:\samp folder\RightX\gamemodes\TestG.pwn(4068) : warning 203: symbol is never used: "wordss"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Reply


Messages In This Thread
IRCCMD - by Loinal - 01.01.2017, 14:57
Re: IRCCMD - by iLearner - 01.01.2017, 15:13
Re: IRCCMD - by Loinal - 01.01.2017, 15:18
Re: IRCCMD - by iLearner - 01.01.2017, 15:32
Re: IRCCMD - by Loinal - 01.01.2017, 15:38
Re: IRCCMD - by Sjn - 01.01.2017, 16:09
Re: IRCCMD - by itsCody - 01.01.2017, 22:16
Re: IRCCMD - by Loinal - 02.01.2017, 05:56

Forum Jump:


Users browsing this thread: 1 Guest(s)