SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 25/09/2010, 10:10 AM   #1
Cody09
Little Clucker
 
Join Date: Jul 2010
Posts: 34
Reputation: 0
Default Problem with Junkbuster

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
Cody09 is offline  
Old 25/09/2010, 10:18 AM   #2
Retardedwolf
High-roller
 
Retardedwolf's Avatar
 
Join Date: Jun 2009
Posts: 1,466
Reputation: 60
Default Re: Problem with Junkbuster

GF edit + Junkbuster. Awesome eh?
Retardedwolf is offline  
Old 25/09/2010, 10:19 AM   #3
Cody09
Little Clucker
 
Join Date: Jul 2010
Posts: 34
Reputation: 0
Default AW: Problem with Junkbuster

why? Doesnīt gives a solution?
Cody09 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LuxAdmin With Junkbuster Include Problem <Weponz> Help Archive 6 07/09/2010 06:08 PM
I have problem with JunkBuster. GBLTeam Help Archive 6 31/08/2010 03:02 PM
JunkBuster help Proteine Help Archive 10 09/07/2010 12:21 PM
junkbuster problem NiiRV4N4 Help Archive 3 08/05/2010 12:36 AM
junkbuster WalkingTall Help Archive 1 05/04/2010 12:45 AM


All times are GMT. The time now is 08:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.