Raised This Month: $ Target: $400
 0% 

Is this work?


Post New Thread Reply   
 
Thread Tools Display Modes
Artifact
Veteran Member
Join Date: Jul 2010
Old 09-27-2012 , 11:38   Re: Is this work?
Reply With Quote #11

Quote:
Originally Posted by ConnorMcLeod View Post
if( read_argv( ... ) == 1 )

But if you hook say or say_team commands you should use read_args + remove_quotes, then #3 seems the best way.
Yea, but this code looking is the character who players type is 1, but I need to player type just 1 character, eg [php]if(user_type_more_than_one) {
client_print(id,print_chat, "You type more than one character")
}

Quote:
Originally Posted by fysiks View Post
What does that question have to do with the code you posted?
To view how long player plays on server
__________________
Artifact is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-27-2012 , 12:50   Re: Is this work?
Reply With Quote #12

No, this code returns the length of the string.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-27-2012 , 19:09   Re: Is this work?
Reply With Quote #13

Quote:
Originally Posted by Artifact View Post
To view how long player plays on server
That doesn't make any sense.
__________________
fysiks is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-28-2012 , 06:31   Re: Is this work?
Reply With Quote #14

Quote:
Originally Posted by claudiuhks View Post
PHP Code:
new char32 ];
if( 
strlenchar ) > ) {
  
// two or more characters reached
}

else {
  
// string is empty or contains one character
}

/* For numeric */
new iResult str_to_numchar );

if( 
iResult == ) {
  
// char is "2", iResult is 2 and char[ 0 ] is also 2

No, that's an useless native call.
Backstabnoob 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 08:14.


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