Killlog problems
#5

Quote:
Originally Posted by Hybris
Посмотреть сообщение
That worked but now I get these 3 errors on the last 3 cases
Код:
(4495) : error 033: array must be indexed (variable "reasonMsg")
(4496) : error 033: array must be indexed (variable "reasonMsg")
(4497) : error 033: array must be indexed (variable "reasonMsg")
Код:
               case 53: reasonMsg = format(msg, sizeof(msg), "Player %s[%d] died. (Drowned)", playerName,playerid);
                case 54: reasonMsg = format(msg, sizeof(msg), "Player %s[%d] died. (Collision)", playerName,playerid);
                default: reasonMsg = format(msg, sizeof(msg), "Player %s[%d] died.", playerName,playerid);
You cant do that and dont even need an extra string (msg).
Do it like this:
pawn Код:
format(reasonMsg, sizeof reasonMsg, "Player %s[%d] died. (Drowned)", playerName, playerid);
EDIT: I thought playerName was a function which was a wrong assumption. Just recheck the code. BTW, you could solve that yourself, just a case of concentration.
Reply


Messages In This Thread
Killlog problems - by Hybris - 19.03.2015, 15:22
Re: Killlog problems - by Gammix - 19.03.2015, 15:28
Re: Killlog problems - by Golf - 19.03.2015, 15:30
Re: Killlog problems - by Hybris - 19.03.2015, 15:39
Re: Killlog problems - by Gammix - 19.03.2015, 15:47
Re: Killlog problems - by Hybris - 19.03.2015, 15:59

Forum Jump:


Users browsing this thread: 2 Guest(s)