Help How 1 variable == more than 1 thing
#4

Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
pawn Код:
switch (pInfo[playerid][DeathReason])
        {
        case INSULTED_TO_DEATH: // line 5401
        {
            SendDeathMessage(killerid,playerid,47);
            format(death,sizeof(death),"*%s (%d) Has Been Insulted To Death By %s (%d)",pInfo[playerid][playername],playerid,pInfo[killerid][playername],killerid);
            //SendDeathChatMessage(playerid,COLOR_MAROON,death);
            pInfo[playerid][Deaths]++;
            pInfo[killerid][Kills]++;
        }
pawn Код:
(5401) : error 008: must be a constant expression; assumed zero
It isn't a constant so you can't switch. Could you show how INSULTED_TO_DEATH is defined?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)