if sm_status is executed from console it will result in client index 0 is invalid error and because it would be pointless to tell user looking at the console aready to look at it so just add a simple check:
PHP Code:
if(client != 0)
PrintToChat(client, "\x04[SM] See console for output!");
mentioned in post
#10