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?