AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player Name (https://forums.alliedmods.net/showthread.php?t=185414)

Waleed 05-17-2012 05:39

Player Name
 
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

ConnorMcLeod 05-17-2012 05:50

Re: Player Name
 
Search get_user_name function on wiki.

Waleed 05-17-2012 05:58

Re: Player Name
 
Quote:

Originally Posted by ConnorMcLeod (Post 1710527)
Search get_user_name function on wiki.

Very Very Special thanks for that, Cause there is no topic on that on wiki.

mottzi 05-17-2012 06:03

Re: Player Name
 
then search again.

Waleed 05-17-2012 06:09

Re: Player Name
 
I solved that problem,But now tell me please,What is the command for "New User Connect to Server" or "OnPlayerConnect"

<VeCo> 05-17-2012 06:13

Re: Player Name
 
Again, there's a function wiki :}

It's client_connect(id)...

EpicMonkey 05-17-2012 07:24

Re: Player Name
 
only if you would search a bit .........

Napoleon_be 05-17-2012 09:40

Re: Player Name
 
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.

ConnorMcLeod 05-17-2012 15:34

Re: Player Name
 
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

Waleed 05-17-2012 16:38

Re: Player Name
 
Sorry,I thought wiki.amxmodx.org :D


All times are GMT -4. The time now is 00:21.

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