ID:2040932
 
Code:
    shake(time2duriation)
var/old_eye = src.client.eye

if(time2duriation)
src.client.eye = old_eye
return

for(src.client.eye)
var/axis = pick(client.pixel_x, client.pixel_y, client.pixel_y)

switch(axis)
if(src.client.pixel_x)
src.client.pixel_x = add(src.client.pixel_x, rand(5, 10))

else if (client.pixel_y)
src.client.pixel_y = add(src.client.pixel_y, rand(5, 10))

else if (client.pixel_z)
src.client.pixel_z = add(src.client.pixel_z, rand(5, 10))


Problem description:code\player\combat\player.combat.dm:84:error: src.client.pixel_x: expected a constant expression
Naruto.dmb - 1 error, 0 warnings (2/20/16 9:20 am)

Basically, src.client.pixel_x can be anything, and that's not valid in a switch().

// checking constants
switch(somevariable)
if(1)
if(2)
if("sometext")


Also:

for(src.client.eye)


Do you know what you are doing here? It looks like, because of that infinite loop, your proc requires toggling on/off, and there is no actual time accounted for.