Quote Originally Posted by Mitch View Post
The code doesn't work correctly, because a2 isn't a client address but a gentity address.
You need to replace 'clientaddress_to_num' with 'gentityaddress_to_num' to get a valid client number.
Are you sure? This is what my log returns;
Code:
clientaddress_to_num = 0, gentityaddress_to_num = 1024
PHP Code:
    int clientnum clientaddress_to_num(a2);
    
int clientnum2 gentityaddress_to_num(a2);
    
printf("clientaddress_to_num = %i, gentityaddress_to_num = %i\n"clientnumclientnum2);