/addcocoseiall problem
#6

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Try removing this line

pawn Код:
tmp = strtok(cmdtext, idx);
I can't, it will have more errors,
Look at the command:
pawn Код:
if(strcmp(cmd, "/addcocoseiall", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /addcocoseiall [suma]");
                return 1;
            }
            if (PlayerInfo[playerid][pAdmin] >= 1338)
            {
                new money;
                money = strval(tmp);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, 256, "ATENTIE ADMINI: %s a dat tututor jucatorilor Online %d Cocosei.", sendername,money);
                ABroadCast(COLOR_YELLOW,string,1);
                for(new i = 0; i < MAX_PLAYERS; i ++)
                {
                    if(IsPlayerConnected(i))
                    {
                        if(i != INVALID_PLAYER_ID)
                        {
                            PlayerInfo[i][pCocosi] += money;
                        }
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Nu esti autorizat pentru folosirea comenzii!");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
/addcocoseiall problem - by calin1996 - 06.06.2012, 16:56
Re: /addcocoseiall problem - by TzAkS. - 06.06.2012, 17:14
Re: /addcocoseiall problem - by Jonny5 - 06.06.2012, 17:15
Re: /addcocoseiall problem - by calin1996 - 06.06.2012, 17:24
Re: /addcocoseiall problem - by MadeMan - 06.06.2012, 17:41
Re: /addcocoseiall problem - by calin1996 - 06.06.2012, 17:51
Re: /addcocoseiall problem - by MadeMan - 06.06.2012, 17:53
Re: /addcocoseiall problem - by calin1996 - 06.06.2012, 18:07
Re: /addcocoseiall problem - by MadeMan - 06.06.2012, 18:16
Re: /addcocoseiall problem - by zxc1 - 06.06.2012, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)