Raised This Month: $ Target: $400
 0% 

Player Name


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 05-17-2012 , 05:39   Player Name
#1

Hey,I want to get the name of the player to show somewhere,



21.
Code:
new name[get_user_name];

It show following error
Error: Syntax error in the expression, or invalid function call on line 21
Error: Invalid array size (negative or zero) on line 21
Error: Empty statement on line 21
Error: Too many error messages on one line on line 21
Waleed is offline
Send a message via Skype™ to Waleed
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-17-2012 , 05:50   Re: Player Name
#2

Search get_user_name function on wiki.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 05-17-2012 , 05:58   Re: Player Name
#3

Quote:
Originally Posted by ConnorMcLeod View Post
Search get_user_name function on wiki.
Very Very Special thanks for that, Cause there is no topic on that on wiki.
Waleed is offline
Send a message via Skype™ to Waleed
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 05-17-2012 , 06:03   Re: Player Name
#4

then search again.
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 05-17-2012 , 06:09   Re: Player Name
#5

I solved that problem,But now tell me please,What is the command for "New User Connect to Server" or "OnPlayerConnect"
Waleed is offline
Send a message via Skype™ to Waleed
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-17-2012 , 06:13   Re: Player Name
#6

Again, there's a function wiki :}

It's client_connect(id)...
__________________
<VeCo> is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 05-17-2012 , 07:24   Re: Player Name
#7

only if you would search a bit .........
EpicMonkey is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-17-2012 , 09:40   Re: Player Name
#8

OnPlayerConnect is what i understand with client_putinserver(id). client_putinserver is a function which you can do stuff when the player has been connected IN THE SERVER and already is in. client_connect(id) is a function which you can do stuff while the player is connecting tho.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-17-2012 , 15:34   Re: Player Name
#9

wiki : http://www.amxmodx.org/funcwiki.php


get_user_name : http://www.amxmodx.org/funcwiki.php?...name&go=search

connect : http://www.amxmodx.org/funcwiki.php?...nect&go=search

putinserver : http://www.amxmodx.org/funcwiki.php?...rver&go=search
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-17-2012 at 15:35.
ConnorMcLeod is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 05-17-2012 , 16:38   Re: Player Name
#10

Sorry,I thought wiki.amxmodx.org
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
Closed Thread



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 00:21.


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