I have this piece of code
PHP Code:
static anim
if(anim = g_models[index][draw2])
{
switch(random_num(1, DRAW2_CHANCE))
{
case DRAW2_CHANCE: play_anim(id, anim)
default: play_anim(id, 3)
}
}
I like how it looks. It even compiles but
compile.exe throws me a warn 211: possibly unintended assignment.
Do I have to change it (to code below) or not?
PHP Code:
static anim; anim = g_models[index][draw2]
if(anim)
{
switch(random_num(1, DRAW2_CHANCE))
{
case DRAW2_CHANCE: play_anim(id, anim)
default: play_anim(id, 3)
}
}
__________________