Problem with zcmd and others errors
#1

Well, i need help fixing these errors, but i dont understand this, i do what it says the compiler error.

Well is this.

In this, it says that "setbomb" is not definied
Код:
D:\Documents and Settings\Administrador\Escritorio\SAMPER\Nuevo SAMP\gamemodes\ElPechero.pwn(12059) : warning 203: symbol is never used: "setbomb"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
and when i define "setbomb" appears this:

Код:
D:\Documents and Settings\Administrador\Escritorio\SAMPER\Nuevo SAMP\gamemodes\ElPechero.pwn(11852) : error 020: invalid symbol name ""
D:\Documents and Settings\Administrador\Escritorio\SAMPER\Nuevo SAMP\gamemodes\ElPechero.pwn(11861) : error 010: invalid function or declaration
D:\Documents and Settings\Administrador\Escritorio\SAMPER\Nuevo SAMP\gamemodes\ElPechero.pwn(12060) : warning 203: symbol is never used: "ang"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
In this filterscript is used zcmd, but when i use zcmd appears this:

Код:
D:\Documents and Settings\Administrador\Escritorio\SAMPER\Nuevo SAMP\gamemodes\ElPechero.pwn(6) : fatal error 100: cannot read from file: "zcmd"

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


1 Error.
Idk what to do, can you guys help me?

Ty
Reply
#2

CTRL + F and put setbomb and remove it,

About ZCMD, you should have a ZCMD Include pawno/include and open the pawno and recompile.
Reply
#3

It doesn't say that setbomb isn't defined. It says that it's defined but it isn't used, so use it in anything or just remove it. For the second thing, show us the code. For the third thing, make sure you have zcmd.inc in pawno/includes and don't double-click your .pwn file to open it, use pawno instead and then open with it the .pwn file.
Reply
#4

This is the code

Код:
#include <a_samp>
#include <zcmd>
 
new Float:x, Float:y, Float:z, Float:ang;
new Obj;
 
forward timer();
 
public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Bomber in floor.");
        print("--------------------------------------\n");
        return 1;
}
 
CMD:setbomb(playerid, params[])
{
        ClearAnimations(playerid);
        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
        GetPlayerPos(playerid, x, y, z);
                GetPlayerFacingAngle(playerid, ang);
        Obj = CreateObject(3052, x, y, z - 0.9, 0, 0, ang, 500);
        SendClientMessage(playerid, -1, "Bombs in 30 sec, run!");
                SetTimer("timer", 10000, false);
                return 1;
}
 
public timer()
{
                CreateExplosion(x, y, z, 6, 30);
                DestroyObject(Obj);
}
The other thing, what i have to delete? the #define setbomb or the other setbomb?

And no, i dont have zcmd.inc, what i have to do?
Reply
#5

It appears to be compiling fine without any errors or warnings. Try again with this code which I fixed the loose indentation warnings (only those occurred).
pawn Код:
#include <a_samp>
#include <zcmd>

new Float:x, Float:y, Float:z, Float:ang;
new Obj;

forward timer();

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Bomber in floor.");
        print("--------------------------------------\n");
        return 1;
}

CMD:setbomb(playerid, params[])
{
        ClearAnimations(playerid);
        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
        GetPlayerPos(playerid, x, y, z);
        GetPlayerFacingAngle(playerid, ang);
        Obj = CreateObject(3052, x, y, z - 0.9, 0, 0, ang, 500);
        SendClientMessage(playerid, -1, "Bombs in 30 sec, run!");
        SetTimer("timer", 10000, false);
        return 1;
}

public timer()
{
        CreateExplosion(x, y, z, 6, 30);
        DestroyObject(Obj);
}
Reply
#6

Ok, ty and the other thing is, i dont have a zcmd.inc, i have to download it or..?
Reply
#7

Yes. Here is the link of the original topic, download it from there http://forum.sa-mp.com/showthread.ph...highlight=zcmd
Reply
#8

[QUOTE=ElAnonymous;2602882]
Код:
D:\Documents and Settings\Administrador\Escritorio\SAMPER\Nuevo SAMP\gamemodes\ElPechero.pwn(12059) : warning 203: symbol is never used: "setbomb"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
just change this
pawn Код:
cmd:setbomb(playerid,params[])
to this
pawn Код:
CMD:setbomb(playerid,params[])
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)