Problem with Junkbuster
#1

Hallo,

I have the problem, that my Gamemode donґt habe a anti cheat script, also I want to use Junkbuster.

But if I use the Include, Errors comes

I hope someone can help my, because it is very, very important!



Code:
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2170) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2178) : error 047: array sizes do not match, or destination array is too small
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2199) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2199) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2199) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2214) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2214) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2214) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2239) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2239) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2239) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2243) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2275) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2275) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\pawno\include\JunkBuster.inc(2275) : warning 213: tag mismatch
C:\Users\Max\Desktop\Serverg\gamemodes\gm.pwn(19991) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Users\Max\Desktop\Serverg\gamemodes\gm.pwn(29747) : error 047: array sizes do not match, or destination array is too small

Here 19991! 19991 ist "new mod = 100;"



Code:
if(location == 99 || location == 100 || location == 102)
			{
			    if(BizzInfo[location-99][bProducts] <= 0)
			    {
			        GameTextForPlayer(playerid, "~r~Ausverkauft", 5000, 1);
					return 1;
			    }
				new mod = 100;
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					format(string, sizeof(string), "Benutzung: /buygun [waffenname] [munition]");
			       SendClientMessage(playerid,COLOR_GREEN,"_______________________________________");
					SendClientMessage(playerid, COLOR_WHITE,"*** Waffen & Munition ***");
					SendClientMessage(playerid, COLOR_GRAD2,string);

Here 29747! 29747 is "giveplayer = strtok(cmdtext, idx);"




Code:
if(strcmp(cmd, "/accban", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 4)
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            giveplayer = strtok(cmdtext, idx);
            if(!strlen(giveplayer))
            {
                SendClientMessage(playerid,COLOR_GRAD2,"FEHLER: /accban [AccountName] ");
                return 1;
            }
            new acc[64], acc2[64], year, month, day, readstr[128];
            format(acc,sizeof(acc),"/Accounts/%s.ini",giveplayer);
            format(acc2,sizeof(acc2),"/Accounts/%s.backup",giveplayer);
            if(!fexist(acc))
            {
                format(string,sizeof(string)," Der Account von %s existiert nicht!",giveplayer);
                SendClientMessage(playerid,COLOR_GRAD2,string);
                return 1;
            }

            new File:account = fopen(acc,io_read);
            new File:backup = fopen(acc2,io_write);
            while(fread(account,readstr))
            {
                fwrite(backup,readstr);
            }
            fclose(backup);
            fclose(account);

Here is Pastbin from Junkbuster if in Junkbuster something wrong

http://pastebin.de/10265


Sorry for my bad english


MfG. Cody09
Reply
#2

GF edit + Junkbuster. Awesome eh?
Reply
#3

why? Doesnґt gives a solution?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)