Raised This Month: $ Target: $400
 0% 

[Help] Using concmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-11-2014 , 11:23   Re: [Help] Using concmd
Reply With Quote #1

Quote:
Originally Posted by Aydeev View Post
PHP Code:
public example()
{
new 
Arg1[3]
read_argv(1Arg12// read argument 1 and strore it in Arg1

//if you need to convert the string to an integer (for example: a player id)
new playerid str_to_num(Arg1)

Don't harcode the size of the arrays, use charsmax to get it.
__________________
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-11-2014 , 22:42   Re: [Help] Using concmd
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
Don't harcode the size of the arrays, use charsmax to get it.
Strings, not arrays. The size for arrays is "sizeof" and the size for strings is "charsmax".
__________________
fysiks 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 17:37.


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