AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amxx have FloatArray? (https://forums.alliedmods.net/showthread.php?t=146670)

0920357689 12-30-2010 15:24

amxx have FloatArray?
 
i can use
new FloatArray:array;

but...how to get/save??

wrecked_ 12-30-2010 16:09

Re: amxx have FloatArray?
 
Code:
new Float:array[3] // save array[0] = 0.1 array[1] = 2.3 array[2] = 99.4 //get if( array[1] == 2.3 ) {}

0920357689 12-30-2010 16:30

Re: amxx have FloatArray?
 
i know this
but i need dele array[0] << the first one array
and auto dropdown array

so if not dynamic array
i need count have how many and loop to dropdown..
look like ArrayDeleteItem ( Array:which, item )

wrecked_ 12-30-2010 17:28

Re: amxx have FloatArray?
 
I don't understand.

0920357689 12-30-2010 18:43

Re: amxx have FloatArray?
 
Code:


for(new i=0; i< size;i++)
{
  time[i] = time[i+1]
}

All array beyond it get shifted down 1 space.

ConnorMcLeod 12-30-2010 20:08

Re: amxx have FloatArray?
 
In one cell dynamic arrays you can use floats or integers, no matter.


All times are GMT -4. The time now is 02:10.

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