View Single Post
  #3  
Old 07-29-2010, 01:23 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
FYI the problem was likely that the GUI was being drawn before the profiles were loaded. You can always do something like:

PHP Code:
while (! profilesLoaded) {
  
sleep(0.05);

in weapons that draw profiles at the start (this forces it to wait for the profiles to load). Then when making the profiles, add this to the end of the function:

PHP Code:
profilesLoaded true
Otherwise, another option to make sure that the profiles are always made first is to put the GuiControlProfile-creating weapon as the first weapon in 'weaponorder' in server options.
__________________
Reply With Quote