Am i doing it right? [Got little errors]
#1

I'm trying to make anti minigun[Detection]

And i got little errors, btw will it work right without those errors?!?

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
   if(
GetPlayerWeapon(killerid) == 38)
   {
     for(new 
i=0i<MAX_PLAYERSi++)
     {
       if(
IsPlayerAdmin(i))
       {
         
SendClientMessage(i, -1"{FF0000}%s has been reported automatically by the server[Reason: Minigun], Advice: Spec"killerid);
       }
       else
       {
         if(
IsPlayerConnected(killerid)) return SendClientMessage(i, -1"{FF0000}WARNING: %s HAS LEFT THE SERVER"killerid);
       }
    }
  }
  return 
1;

Код:
C:\Users\yan\Desktop\Scripting tests\filterscripts\antimini.pwn(22) : warning 202: number of arguments does not match definition
C:\Users\yan\Desktop\Scripting tests\filterscripts\antimini.pwn(26) : warning 202: number of arguments does not match definition
C:\Users\yan\Desktop\Scripting tests\filterscripts\antimini.pwn(30) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)