All of the below lines are throwing errors. Once they are all fixed it will compile with 0 errors but you get 14 warnings for unused variables.
PHP Code:
if(((g_punish[i][2]-timp) > 5 )
//should be
if((g_punish[i][2]-timp) > 5 )
PHP Code:
case 3: banPlayer(id,i)
//should be
case 3: banPlayer(id)
In the below code, action is undefined. You can use random_num(0,10) to play one of the files stored in the actions array randomly.
PHP Code:
if(sound_mode==0)
client_cmd(id,"spk %s",actions[action])
else
client_cmd(0,"spk %s",actions[action])
__________________