View Single Post
Identity
Member
Join Date: Mar 2007
Old 03-09-2007 , 17:16   Re: [TUT] The Use of Static Variables
Reply With Quote #16

Code:
static variable initialized
  
  Hawk552 joins server
  client_connect called (by Hawk552)
  zomg joins server
  client_connect called (by zomg) 
  static variable already exists
  get name (by Hawk552)
  get name (by zomg)-> now looks like "zomg\052\0...", however it ends at the first \0 so the trailing 52 doesn't matter
  print name (by Hawk552)
  print name (by zomg)
In this case it'll print zomg twice?
Identity is offline