Raised This Month: $ Target: $400
 0% 

Actual size of array.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nanaka
Junior Member
Join Date: May 2013
Old 05-15-2013 , 10:31   Actual size of array.
Reply With Quote #1

Hello,
Yesterday I started with Amx Mod X and Pawn language.

Let's say that IP in this array is 192.168.1.1 in below example:
Code:
new szIP[128];
get_user_ip(id, szIP, charsmax(szIP));
So, how can I check size of this array?
Sizeof returns 128, but I'm looking for 11, because "192.168.1.1" == 11.

PS. Sorry for my weak english.
Nanaka is offline
 



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 16:15.


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