Raised This Month: $ Target: $400
 0% 

Simple Question about Array.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 12-25-2015 , 12:57   Simple Question about Array.
Reply With Quote #1

Hi . I declare a global variable:

new playerIP[16]


After that i use it:

get_user_ip(id, playerIP, 15, 1)

If player ip for example is : 255.255.255.207 than the array will be like this:

playerIP[0] = '2' , playerIP[1] = '5', ... playerIP[15] = '7'

Next , if i get another player's ip into this variable, should i clear all array or it will be cleaned by the function itself?

I mean if the next player's ip is : 101.12.13.14

than playerIP array will be 101.12.13.14 or it will be 101.12.13.14207 ???


207 - from previous ip because seconds player's ip hasn't 15 characters.

Last edited by siriusmd99; 12-25-2015 at 12:59.
siriusmd99 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 18:13.


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