Jump to content

[Resursa]Converter STRCMP in ZCMD


Recommended Posts

Salutare toata lumea . Astazi am descis sa public un Convertor care l-am gasit in PC si este chiar foarte interesant.

Faza naspa este ca nu functioneaza din ZCMD in STRCMP .

Il puteti lua de mai jos . Nu sunt eu CreatoRUL .

Va urez mult succes si sa convertati cat mai multe comenzi. Nu raspund pentru problemele acestuia si greselile facute de scripteri incepatori .

Link download 1 : http://adf.ly/1LCJsB

Link download 2 : http://adf.ly/1LCK3b

Link to comment
Share on other sites

primul link imi da ca e virus asta totusi e bun http://www.girlshare.ro/33657826.4

Si convertesti din asta

if(strcmp(cmd, "/achat", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] > 0)
        {
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[128];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/achat [chat]");
                return 1;
            }
            if (PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pAdmin] > 0)
            {
                   format(string, sizeof(string), "{FFFF00}[CHAT]- Admin %s:{D02F8F}  %s ", sendername, result);
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i))
                    {
                        if(PlayerInfo[pDonateRank] >= 1 || PlayerInfo[pAdmin] > 6)
                        {
                            SendClientMessage(i, COLOR_GRAD2, string);
                        }
                    }
                }
            }
            printf("%s", string);
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD2, "  Nu esti vip!");
            return 1;
        }
    }

in asta

 

CMD:achat(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
        new length = strlen(cmd);
        while ((idx < length) && (cmd[idx] <= ' '))
        {
            idx++;
        }
        new offset = idx;
        new result[128];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
        {
            result[idx - offset] = cmd[idx];
            idx++;
        }
        result[idx - offset] = EOS;
        if(!strlen(result))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/achat [chat]");
            return 1;
        }
        if (PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pAdmin] > 0)
        {
            format(string, sizeof(string), "{FFFF00}[CHAT]- Admin %s:{D02F8F}  %s ", sendername, result);
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[pDonateRank] >= 1 || PlayerInfo[pAdmin] > 6)
                    {
                        SendClientMessage(i, COLOR_GRAD2, string);
                    }
                }
            }
        }
        printf("%s", string);
        return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD2, "  Nu esti vip!");
        return 1;
    }
}

 

Nu e prea iteligent convertorul asta adica oricine stie sa schimbe asta if(strcmp(cmd, "/achat", true) == 0) in asta CMD:achat(playerid, params[])

si nu inlocuieste cmd cu params deci da erori, nu stiu ce sa zic daca va place sa va placa :D

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.