SA-MP Forums Archive
Help me YSI :( - 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: Help me YSI :( (/showthread.php?tid=459358)



Help me YSI :( - z0nzjn123 - 22.08.2013

Код HTML:
stock CheatsDetected(playerid)
{
   new string[128];
   if(SpeedHacking[playerid] == 1)
   {
      new pName[MAX_PLAYER_NAME];
      GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
      format(string,sizeof(string),"[ANTI CHEAT] Anti-Cheat has banned %s(%d). [Reason: Hack ( Speed ) ]",pName,playerid);
      SendClientMessageToAll(COLOR_PINK,string);

      format(string,sizeof(string),"1[ANTI CHEAT] Anti-Cheat has banned %s(%d). [Reason: Hack ( Speed ) ]",pName,playerid);
      [COLOR="Red"]IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
      IRC_GroupSay(gGroupID,IRC_ADMINCHANNEL,string);[/COLOR]

      format(string, sizeof(string), "~r~BANNED!");
      GameTextForPlayer(playerid, string, 3000, 1);

      new INI:File = INI_Open(UserPath(playerid));
      INI_SetTag(File,"Player's Data");
      INI_WriteString(File,"BanReason","Cheats Detected");
      INI_WriteString(File,"Reason","Speed Hacks");
      INI_Close(File);
      PlayerInfo[playerid][pBanned] =1;

      SetTimerEx("KickPlayer",1000,false,"i",playerid);
      return 1;
  }
 return 1;
}



Код:
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(615) : error 021: symbol already defined: "FALSE"
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(3162) : warning 217: loose indentation
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(3167) : warning 217: loose indentation
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11104) : warning 217: loose indentation
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11126) : error 017: undefined symbol "IRC_GroupSay"
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11127) : error 017: undefined symbol "IRC_GroupSay"
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11132) : error 017: undefined symbol "UserPath"
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11142) : warning 217: loose indentation
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11148) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11150) : error 021: symbol already defined: "INI_ParseFile"
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11150) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11150 -- 11151) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\NE-RP 1.1\NE-RP 1.1\gamemodes\NERP1.pwn(11150 -- 11151) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.