Jump to content
  • 0

Problema /createnote


Users

Question

Salut , am si eu o intrebare.Am si eu comadna aceasta :

[pawn]if(strcmp(cmd,"/createnote",true)==0) // By Ellis

    {

        if(IsPlayerConnected(playerid))

        {

            if(gPlayerLogged[playerid] == 0)

            {

                SendClientMessage(playerid, COLOR_GREY, "    You need to login first ! ");

                return 1;

            }

            new length = strlen(cmdtext);

            while ((idx < length) && (cmdtext[idx] <= ' '))

            {

                idx++;

            }

            new offset = idx;

            new result[64];

            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

            {

                result[idx - offset] = cmdtext[idx];

                idx++;

            }

            result[idx - offset] = EOS;

            if(length > 60)

            {

                SendClientMessage(playerid, COLOR_GREY, "    Note is too long ! ");

                return 1;

            }

            if(!strlen(result))

            {

                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /createnote [text]");

                return 1;

            }

            if(PlayerInfo[playerid][pNote1s] == 0)

            {

                strmid(PlayerInfo[playerid][pNote1], result, 0, strlen(result), 255);

                PlayerInfo[playerid][pNote1s] = 1;

                SendClientMessage(playerid, COLOR_WHITE, "Note created successfuly.");

                return 1;

            }

            else if(PlayerInfo[playerid][pNote2s] == 0)

            {

                strmid(PlayerInfo[playerid][pNote2], result, 0, strlen(result), 255);

                PlayerInfo[playerid][pNote2s] = 1;

                SendClientMessage(playerid, COLOR_WHITE, "Note created successfuly.");

                return 1;

            }

            else if(PlayerInfo[playerid][pNote3s] == 0)

            {

                strmid(PlayerInfo[playerid][pNote3], result, 0, strlen(result), 255);

                PlayerInfo[playerid][pNote3s] = 1;

                SendClientMessage(playerid, COLOR_WHITE, "Note created successfuly.");

                return 1;

            }

            else if(PlayerInfo[playerid][pNote4s] == 0)

            {

                strmid(PlayerInfo[playerid][pNote4], result, 0, strlen(result), 255);

                PlayerInfo[playerid][pNote4s] = 1;

                SendClientMessage(playerid, COLOR_WHITE, "Note created successfuly.");

                return 1;

            }

            else if(PlayerInfo[playerid][pNote5s] == 0)

            {

                strmid(PlayerInfo[playerid][pNote5], result, 0, strlen(result), 255);

                PlayerInfo[playerid][pNote5s] = 1;

                SendClientMessage(playerid, COLOR_WHITE, "Note created successfuly.");

                return 1;

            }

            else

            {

                SendClientMessage(playerid, COLOR_GREY, "    You have no free pages left at your notebook ! ");

                return 1;

            }

        }

        return 1;

    }[/pawn]

Am auzit de la multi ca iti poti da admin cu ea ... dar eu nu cred deoarece ea nu contine nimic legat de pAdmin prin ea ... imi puteti zice si mei daca este adevarat si cum ca sunt curios si daca as putea remedia aceasta problema?

HostName: [RPG]*|| Ecila Royal Gaming ||*-WIPED

Address:  93.114.82.70:7777

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.