ZCMD to Normal Command
#21

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
Don't post the whole script lol, Drop here the lines and your errors.
I don't get any error,just that :

http://www.******.ro/imgres?imgurl=h...:0&tx=72&ty=76
Reply
#22

Why you didn't included
pawn Код:
#include <ZCMD>
When you had your ZCMD commands, then it's just working fine.
Reply
#23

Pretty hard to understand what you wrote there.
Put #include <zcmd> , use your zCMD commands...
and on helphat you forgot to add parameters.

pawn Код:
CMD:helphat(playerid, params[])
Reply
#24

And don't drop ZCMD under OnPLayerCommand if you did that. Just drop them under in your code.
Reply
#25

Код:
	if(strcmp(cmd, "/hat", true) == 0)
    {
    new skin, id = strval(params[0]), beret, slot = GetEmptySlot(playerid), count;

    if(id <= 0 || id > 12) return SendClientMessage(playerid, 0xFFFFFFAA, "Use: /hat [1 - 12]");
    skin = (GetPlayerSkin(playerid) - 1);
    switch(id)
    {
        case 1:     beret = 18926;
        case 2..10: beret = 18926 + id;
        case 11:    beret = 19099;
        case 12:    beret = 19098;
    }
    do
    {
        if(skin == invalidskins[count]) return SendClientMessage(playerid, 0xFFFFFFAA, "Your skin do not support a cap.");
        count++;
    }
    while(count < sizeof invalidskins);
    if(skin < 0) skin = 0;
    if(slot == -1) return SendClientMessage(playerid, 0xFFFFFFAA, "You're holding the maximum of objects possible.");
    TextDrawSetString(MsgBox[playerid],"   You use a Cap");
    TextDrawShowForPlayer(playerid, MsgBox[playerid]);
    SetTimerEx("Hide", 3000, false, "d", playerid);
    SetPlayerAttachedObjectEx(playerid, slot, beret, 2, SkinOffSet[skin][0], SkinOffSet[skin][1], SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
    GivePlayerMoney(playerid, -500);
    return 1;
    }
    if(strcmp(cmd, "/backcaps", true) == 0)
{
    new skin, id = strval(params[0]), beret, slot = GetEmptySlot(playerid), count;

    if(id <= 0 || id > 5) return SendClientMessage(playerid, 0xFFFFFFAA, "Use: /backcaps [1 - 5]");
    skin = (GetPlayerSkin(playerid) - 1);
    switch(id)
    {
        case 1:    beret = 18939;
        case 2..5: beret = 18939 + id;
    }
    do
    {
        if(skin == invalidcapsskins[count]) return SendClientMessage(playerid, 0xFFFFFFAA, "Your skin do not support a cap.");
        count++;
    }
    while(count < sizeof invalidcapsskins);
    if(skin < 0) skin = 0;
    if(slot == -1) return SendClientMessage(playerid, 0xFFFFFFAA, "You're holding the maximum of objects possible.");
    TextDrawSetString(MsgBox[playerid],"   You use a Cap");
    TextDrawShowForPlayer(playerid, MsgBox[playerid]);
    SetTimerEx("Hide", 3000, false, "d", playerid);
    SetPlayerAttachedObjectEx(playerid, slot, beret, 2, SkinCapsSet[skin][0], SkinCapsSet[skin][1], SkinCapsSet[skin][2], SkinCapsSet[skin][3], SkinCapsSet[skin][4], SkinCapsSet[skin][5]);
    GivePlayerMoney(playerid, -500);
    return 1;
}
if(strcmp(cmd, "/removeob", true) == 0)
{
    if(UseHat(playerid))
    {
        RemovePlayerAttachedObject(playerid, pObject[playerid][oslot]);
        pObject[playerid][oslot] = -1;
        pObject[playerid][slotreserved] = false;
        TextDrawSetString(MsgBox[playerid],"   Cap removed");
        TextDrawShowForPlayer(playerid, MsgBox[playerid]);
        SetTimerEx("Hide", 3000, false, "d", playerid);
        return 1;
    }
    return SendClientMessage(playerid, 0xFFFFFFAA, "You aren't using hat/backcaps.");
}
if(strcmp(cmd, "/helphat", true) == 0)
{
    SendClientMessage(playerid, COLOR_GREEN1, "Ulric Hat/BackCaps system by Xaviour212/Dimas_Rizward.");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type: /hat [1 - 12] to use a Hat.");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type: /backcaps [1 - 5] to use a BackCaps.");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type: /removeob to removed your hat and backcaps.");
    return 1;
}
The problem is here..If i put that,I get the don't send error...What is wrong and where i should to put it ?
Reply
#26

I don't know what a 'Don't send error' is, Drop down the error and the lines.
Reply
#27

http://www.******.ro/imgres?q=pawno+...t:429,r:13,s:0

That is the error
Reply
#28

Then you are missing a bracket, search in your whole script if your brackets are correct.
Reply
#29

I get the error when i put the commands /hat /backcap and rest of them

I don't see any missing bracked,do you ?
Reply
#30

Did you dropped them under OnPlayerCommand?
Reply
#31

Yes....
Reply
#32

Why normal command when ZCMD is a much more faster system..
Reply
#33

I can't to convert all of my commands in ZMCD.I have over 7000 commands.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)