Help fix errors
#1

C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(43) : warning 213: tag mismatch
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(44) : warning 213: tag mismatch
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(45) : warning 213: tag mismatch
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(96) : error 035: argument type mismatch (argument 1)
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 028: invalid subscript (not an array or too many subscripts): "arg0"
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : warning 215: expression has no effect
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 001: expected token: ";", but found "]"
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 029: invalid expression, assumed zero
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : fatal error 107: too many error messages on one line

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


5 Errors.


Код:
#include <a_samp>
#include <core>
#include <float>

new glob0[200][5];


public OnPlayerUpdate(playerid)
{
	if(!IsPlayerConnected(playerid))
	{
		return 0;
	}
	if(GetPlayerState(playerid) == 2)
	{
		new var0 = 0;
		while(++var0 < 200)
		{
			if(IsPlayerInRangeOfPoint(playerid, 1077936128, glob0[var0][1], glob0[var0][2], glob0[var0][3]))
			{
				if(glob0[var0][0] == 1)
				{
					new var1 = 0, var2 = 0, var3 = 0, var4 = 0;
					new var5 = GetPlayerVehicleID(playerid);
					GetVehicleDamageStatus(var5, var1, var2, var3, var4);
					var4 = functionAC4(1, 1, 1, 1);
					UpdateVehicleDamageStatus(var5, var1, var2, var3, var4);
					return 0;
				}
			}
		}
	}
	return 1;
}

function360(Float:arg0, Float:arg1, Float:arg2, Float:arg3)
{
	for(new var0 = 0; var0 < 200; var0++)
	{
		if(!glob0[var0][0])
		{
			glob0[var0][0] = 1;
			glob0[var0][1] = arg0;
			glob0[var0][2] = arg1;
			glob0[var0][3] = arg2 - 0.6999;
			glob0[var0][4] = CreateObject(2899, arg0, arg1, arg2 - 0.8999, 0.0, 0.0, arg3 - 90, 0);
			return 1;
		}
	}
	return 0;
}

function644()
{
	for(new var0 = 0; var0 < 200; var0++)
	{
		if(glob0[var0][0] == 1)
		{
			glob0[var0][0] = 0;
			glob0[var0][1] = 0;
			glob0[var0][2] = 0;
			glob0[var0][3] = 0;
			DestroyObject(glob0[var0][4]);
		}
	}
	return 0;
}

function810(arg0)
{
	for(new var0 = 0; var0 < 200; var0++)
	{
		if(IsPlayerInRangeOfPoint(arg0, 1073741824, glob0[var0][1], glob0[var0][2], glob0[var0][3]))
		{
			if(glob0[var0][0] == 1)
			{
				glob0[var0][0] = 0;
				glob0[var0][1] = 0;
				glob0[var0][2] = 0;
				glob0[var0][3] = 0;
				DestroyObject(glob0[var0][4]);
				return 1;
			}
		}
	}
	return 0;
}

functionAC4(arg0, arg1, arg2, arg3)
{
	return (arg3 << 3) | ((arg2 << 2) | ((arg1 << 1) | arg0));
}

functionB38(arg0, &arg1)
{
	new var0 = strlen(arg0);
	while(arg1 < var0 && arg0[arg1] <= 32)
	{
		arg1++;
	}
	new var1 = arg1;
	new var2[20];
	while(arg1 < var0 && arg0[arg1] > 32 && arg1 - var1 < 19)
	{
		var2[arg1 - var1] = arg0[arg1];
		arg1++;
	}
	var2[arg1 - var1] = 0;
	return var2;
}

public OnPlayerCommandText(playerid, cmdtext)
{
	new var0[256];
	new var1 = 0;
	var0 = functionB38(cmdtext, var1);
	if(!strcmp(var0, "/idetis", true))
	{
		if(280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid))
		{
			return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams.[Turi būti su apranga]");
		}
		new Float:var2 = 0.0, Float:var3 = 0.0, Float:var4 = 0.0, Float:var5 = 0.0;
		GetPlayerPos(playerid, var2, var3, var4);
		GetPlayerFacingAngle(playerid, var5);
		function360(var2, var3, var4, var5);
		return 1;
	}
	if(!strcmp(var0, "/isimtis", true))
	{
		if(280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid))
		{
			return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams.[Turi būti su apranga]");
		}
		function810(playerid);
		return 1;
	}
	if(!strcmp(var0, "/isimtisvs", true))
	{
		if(280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid))
		{
			return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams.[Turi būti su apranga]");
		}
		function644();
		return 1;
	}
	return 0;
}
Reply
#2

Trying to compile a decompiled - and thus probably stolen - script. SMH.
Reply
#3

This is my friend script and he give to me this code.
Still thanks for a help
Reply
#4

Quote:
Originally Posted by karolissas
Посмотреть сообщение
This is my friend script and he give to me this code.
Still thanks for a help
Yes.. "Friend"..
Of course. c:

We are not going to help you with stolen code.
Reply
#5

I'm so free so decide to fix it .-.
PHP код:
#include <a_samp>
#include <core>
#include <float>
new Float:glob0[200][4],glob1[200];
public 
OnPlayerUpdate(playerid)
{
    if(!
IsPlayerConnected(playerid))
    {
        return 
0;
    }
    if(
GetPlayerState(playerid) == 2)
    {
        new 
var0 0;
        while(++
var0 200)
        {
            if(
IsPlayerInRangeOfPoint(playerid1077936128glob0[var0][1], glob0[var0][2], glob0[var0][3]))
            {
                if(
glob0[var0][0] == 1)
                {
                    new 
var1 0var2 0var3 0var4 0;
                    new 
var5 GetPlayerVehicleID(playerid);
                    
GetVehicleDamageStatus(var5var1var2var3var4);
                    
var4 functionAC4(1111);
                    
UpdateVehicleDamageStatus(var5var1var2var3var4);
                    return 
0;
                }
            }
        }
    }
    return 
1;
}
function360(Float:arg0Float:arg1Float:arg2Float:arg3)
{
    for(new 
var0 0var0 200var0++)
    {
        if(!
glob0[var0][0])
        {
            
glob0[var0][0] = 1;
            
glob0[var0][1] = arg0;
            
glob0[var0][2] = arg1;
            
glob0[var0][3] = arg2 0.6999;
            
glob1[var0] = CreateObject(2899arg0arg1arg2 0.89990.00.0arg3 900);
            return 
1;
        }
    }
    return 
0;
}
function644()
{
    for(new 
var0 0var0 200var0++)
    {
        if(
glob0[var0][0] == 1)
        {
            
glob0[var0][0] = 0;
            
glob0[var0][1] = 0;
            
glob0[var0][2] = 0;
            
glob0[var0][3] = 0;
            
DestroyObject(glob1[var0]);
        }
    }
    return 
0;
}
function810(arg0)
{
    for(new 
var0 0var0 200var0++)
    {
        if(
IsPlayerInRangeOfPoint(arg01073741824glob0[var0][1], glob0[var0][2], glob0[var0][3]))
        {
            if(
glob0[var0][0] == 1)
            {
                
glob0[var0][0] = 0;
                
glob0[var0][1] = 0;
                
glob0[var0][2] = 0;
                
glob0[var0][3] = 0;
                
DestroyObject(glob1[var0]);
                return 
1;
            }
        }
    }
    return 
0;
}
functionAC4(arg0arg1arg2arg3)
{
    return (
arg3 << 3) | ((arg2 << 2) | ((arg1 << 1) | arg0));
}
functionB38(arg0[], &arg1)
{
    new 
var0 strlen(arg0);
    while(
arg1 var0 && arg0[arg1] <= 32)
    {
        
arg1++;
    }
    new 
var1 arg1;
    new 
var2[20];
    while(
arg1 var0 && arg0[arg1] > 32 && arg1 var1 19)
    {
        
var2[arg1 var1] = arg0[arg1];
        
arg1++;
    }
    
var2[arg1 var1] = 0;
    return 
var2;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    new 
var0[256];
    new 
var1 0;
    
var0 functionB38(cmdtextvar1);
    if(!
strcmp(var0"/idetis"true))
    {
        if(
280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid))
        {
            return 
SendClientMessage(playerid0x10F441AA"?i komanda policininkams.[Turi b?ti su apranga]");
        }
        new 
Float:var2 0.0Float:var3 0.0Float:var4 0.0Float:var5 0.0;
        
GetPlayerPos(playeridvar2var3var4);
        
GetPlayerFacingAngle(playeridvar5);
        
function360(var2var3var4var5);
        return 
1;
    }
    if(!
strcmp(var0"/isimtis"true))
    {
        if(
280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid))
        {
            return 
SendClientMessage(playerid0x10F441AA"?i komanda policininkams.[Turi b?ti su apranga]");
        }
        
function810(playerid);
        return 
1;
    }
    if(!
strcmp(var0"/isimtisvs"true))
    {
        if(
280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid))
        {
            return 
SendClientMessage(playerid0x10F441AA"?i komanda policininkams.[Turi b?ti su apranga]");
        }
        
function644();
        return 
1;
    }
    return 
0;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)