dcmd..
#1

dcmd..
errors:
pawn Код:
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1601) : error 017: undefined symbol "dcmd_freeze"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1602) : error 017: undefined symbol "dcmd_unfreeze"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1603) : error 017: undefined symbol "dcmd_kill"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1604) : error 017: undefined symbol "dcmd_mute"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1605) : error 017: undefined symbol "dcmd_unmute"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1608) : error 017: undefined symbol "dcmd_setscore"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1609) : error 017: undefined symbol "dcmd_jetpack"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1610) : error 017: undefined symbol "dcmd_slap"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1611) : error 017: undefined symbol "dcmd_announce"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1612) : error 017: undefined symbol "dcmd_spec"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1613) : error 017: undefined symbol "dcmd_specoff"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1614) : error 017: undefined symbol "dcmd_agivemoney"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1615) : error 017: undefined symbol "dcmd_goto"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1616) : error 017: undefined symbol "dcmd_gethere"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(1620) : error 017: undefined symbol "dcmd_sethp"
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(16624) : warning 203: symbol is never used: "dcmd_giveweapon"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


15 Errors.
dcmds:
pawn Код:
dcmd(kick, 4, cmdtext);
    dcmd(ban, 3, cmdtext);
    dcmd(freeze, 6, cmdtext);
    dcmd(unfreeze, 8, cmdtext);
    dcmd(kill, 5, cmdtext);
    dcmd(mute, 4, cmdtext);
    dcmd(unmute, 6, cmdtext);
    dcmd(setscore, 8, cmdtext);
    dcmd(jetpack, 7, cmdtext);
    dcmd(slap, 4, cmdtext);
    dcmd(announce, 8, cmdtext);
    dcmd(spec, 4, cmdtext);
    dcmd(specoff, 7, cmdtext);
    dcmd(agivemoney, 10, cmdtext);
    dcmd(goto, 4, cmdtext);
    dcmd(gethere, 7, cmdtext);
    dcmd(ahelp, 5, cmdtext);
    dcmd(acmds, 5, cmdtext);
    dcmd(sethp, 6, cmdtext);
Reply
#2

Do you even have the commands to go with those ?

You should have ... :

pawn Код:
dcmd_kick(playerid,params[])
{
    return 1;
}

dcmd_ban(playerid,params[])
{
    return 1;
}

// etc ... all other cmds
At the bottom of your script.
Reply
#3

of course and ido here they are 2 of them:
pawn Код:
dcmd_gethere(playerid, params[])
{
        new ID;
        if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gethere [id]");
        else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
        else
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            SetPlayerPos(ID, x+1, y+1, z);
        }
    return 1;
}


dcmd_sethp(playerid, params[])
{
        new ID, amount;
        if(sscanf(params, "ii", ID, amount)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sethp [id] [amount]");
        else
        {
            new name[60], string[256];
            GetPlayerName(ID, name, 60);
            format(string, 256, "You have set %s[%d]'s HP to %d", name, ID, amount);
            SendClientMessage(playerid, COLOR_YELLOW, string);
            SetPlayerHealth(playerid, amount);
        }
    return 1;
}
Reply
#4

Just a heads up:
pawn Код:
dcmd(kill, 5, cmdtext);
Should be:
pawn Код:
dcmd(kill, 4, cmdtext);
----------------------------------------
pawn Код:
dcmd(sethp, 6, cmdtext);
Should be:
pawn Код:
dcmd(sethp, 5, cmdtext);
Reply
#5

I Use dcmd Send me ur script Via PM and ill try and fix it
Reply
#6

eventhough i changed it stills the same underfined symbols D:
Reply
#7

Send Me Your Script
Reply
#8

Do you even have the dcmd macro? Also, where are you posting the dcmd(kill,5....) lines?
Reply
#9

You should have all the dcmd(blabla,6,cmdtext); under OnPlayerCommandText, and should have dcmd defined at the top of your script:

pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Reply
#10

yes here it is :
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
and the dcmd(kill,5,cmdtext) is to 1603 line
and i already have my dcmds under on playercommandtext-.- and this on top of the script.... @otto
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)