Timer / Textdraw bug
#5

Quote:
Originally Posted by SnG.Scot_MisCuDI
Посмотреть сообщение
pawn Код:
(3016) : error 028: invalid subscript (not an array or too many subscripts): "JailTimer"
(3016) : warning 215: expression has no effect
(3016) : error 001: expected token: ";", but found "]"
(3016) : error 029: invalid expression, assumed zero
(3016) : fatal error 107: too many error messages on one line
3016
pawn Код:
KillTimer(JailTimer[targetid]);
is [targetid] really needed in JailTimer[targetid] ? If it doesnt have targetid will it kill the timer for everyone in jail?
Yes, seeing that you want to create the timer for an individual player and not one player, you'd have to make the variable an array. So it would be "new JailTimer[MAX_PLAYERS];" as MP2 said.
Reply


Messages In This Thread
Timer / Textdraw bug - by SnG.Scot_MisCuDI - 04.07.2012, 05:23
Re: Timer / Textdraw bug - by Tee - 04.07.2012, 05:31
Re: Timer / Textdraw bug - by SnG.Scot_MisCuDI - 04.07.2012, 05:37
Re: Timer / Textdraw bug - by MP2 - 04.07.2012, 05:40
Re: Timer / Textdraw bug - by Tee - 04.07.2012, 05:42
Re: Timer / Textdraw bug - by SnG.Scot_MisCuDI - 04.07.2012, 05:44
Re: Timer / Textdraw bug - by [KHK]Khalid - 04.07.2012, 05:46
Re: Timer / Textdraw bug - by Tee - 04.07.2012, 05:48
Re: Timer / Textdraw bug - by SnG.Scot_MisCuDI - 04.07.2012, 05:49
Re: Timer / Textdraw bug - by [KHK]Khalid - 04.07.2012, 05:52

Forum Jump:


Users browsing this thread: 1 Guest(s)