How to set this into /destroyallcades?
#10

Quote:
Originally Posted by Robo_N1X
Посмотреть сообщение
Did you checked my previous post?



Also i've saw your Barricade[] code, so you can check by using:
pawn Код:
if(Barricade[i] != 0)
on code above, replace the IsValidDynamicObject(Barricade[i]).
But i would recommend my previous code above, with IsValidDynamicObject...
You can either use:
pawn Код:
if(IsValidDynamicObject(Barricade[i]))
or
pawn Код:
if(IsValidDynamicObject(Barricade[i]) && Barricade[i] != 0)
Код:
  foreach(Player, x)
Код:
(26093) : warning 219: local variable "x" shadows a variable at a preceding level
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)