Raised This Month: $ Target: $400
 0% 

global values, player's indexes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
addicted2sex
Senior Member
Join Date: May 2009
Location: localhost
Old 11-30-2009 , 10:47   Re: global values, player's indexes
Reply With Quote #1

PHP Code:
public client_putinserver(id) { 
set_task(2.0"somefunc, id, _, _, "b") 


public client_disconnect(id)
remove_task(id)

public somefunc(id) { 
static g_name[32]
get_user_name(id, g_name, charsmax(name)) 
set_hudmessage(210, 105, 30, 0.01, 0.76, 0, _, 1.9,_, 0.1, -1 ) 
show_hudmessage(id, "
Your name: %s", g_name) 

Use this instead. You dont need the variable to be global ... In this way you shouldnt have problems with the nick anymore ..
__________________
Let 7he gr0ovE r3Lease y0ur m!nd

Last edited by addicted2sex; 11-30-2009 at 10:53.
addicted2sex is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode