AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Dynamic Array (https://forums.alliedmods.net/showthread.php?t=236414)

Baws 03-04-2014 14:00

Dynamic Array
 
How to replace
PHP Code:

#define MAX_SONGS 5000 

With a unlimited dynamic array?

ConnorMcLeod 03-04-2014 14:08

Re: Dynamic Array
 
PHP Code:

#include amxmodx

#define b_Init plugin_init
#define bCreateArray ArrayCreate
#define Barray Array

new Barray:b_SongsHolder

public b_Init()
{
    
b_SongsHolder bCreateArray(x)



Baws 03-04-2014 14:32

Re: Dynamic Array
 
Oh wow ahahaha <3

bThanks :3

fysiks 03-04-2014 23:41

Re: Dynamic Array
 
Quote:

Originally Posted by ConnorMcLeod (Post 2107440)
PHP Code:

#include amxmodx

#define b_Init plugin_init
#define bCreateArray ArrayCreate
#define Barray Array

new Barray:b_SongsHolder

public b_Init()
{
    
b_SongsHolder bCreateArray(x)



:shock: :|

Baws 03-05-2014 11:41

Re: Dynamic Array
 
He's using my b coding style.

fysiks 03-05-2014 14:38

Re: Dynamic Array
 
Quote:

Originally Posted by baws (Post 2107834)
He's using my b coding style.

What does that mean? It's a really bad thing to do with code that is and should be straight forward.

Baws 03-05-2014 15:47

Re: Dynamic Array
 
I know he's just messing around ahaha. As i did something horrible before so he's just making fun of me but it's cool :3

georgik57 03-08-2014 18:17

Re: Dynamic Array
 
Quote:

Originally Posted by ConnorMcLeod (Post 2107440)
PHP Code:

#include amxmodx

#define b_Init plugin_init
#define bCreateArray ArrayCreate
#define Barray Array

new Barray:b_SongsHolder

public b_Init()
{
    
b_SongsHolder bCreateArray(x)



i remember reading his songs plugin code and i just lol'd when reading this

Baws 03-08-2014 22:33

Re: Dynamic Array
 
Yeah i fixed that long time ago ahahaha. Well i didn't know and every new scripter need to start somewhere :3


All times are GMT -4. The time now is 05:55.

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