ok is solved it the incorect part was this
PHP Code:
ColorChat(id, GREEN, "^x04[JoiNET]^x01 Player^4 %s^1 accumulated a total of ^x04 %s^x01 on our server!", name[player], output);
->
PHP Code:
ColorChat(id, GREEN, "^x04[JoiNET]^x01 Player^4 %s^1 accumulated a total of ^x04 %s^x01 on our server!", name, output);