Raised This Month: $ Target: $400
 0% 

Error Info


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-17-2012 , 08:31   Re: Error Info
Reply With Quote #1

You can't use natives like that. This is correct:



PHP Code:
new name[32]
get_user_name(playeridnamecharsmax(name)) 

You need to assign a variable and select where to store the name with given maximum characters.
Charsmax gets the maximum lenght that a string array can contain, it's the same as sizeof(name) - 1 (in this case, that's the same as 31).


Then the player name is stored into the "name" string.
__________________

Last edited by <VeCo>; 05-17-2012 at 08:31.
<VeCo> 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 00:20.


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