Skip to content

Instantly share code, notes, and snippets.

@tony1223
Created September 30, 2012 11:14
Show Gist options
  • Select an option

  • Save tony1223/3806483 to your computer and use it in GitHub Desktop.

Select an option

Save tony1223/3806483 to your computer and use it in GitHub Desktop.
寄送方:
sprintf(msg_buf,"020%5d%ld",player[table[i]].id,
player[table[i]].money+change_money[i]);
收方:
strcpy(msg_buf, buf + 3);
*(msg_buf + 5) = 0;
id = atoi(msg_buf);
read_user_id(id);
record.money = atol(buf + 8);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment