Hello,
so here is the thing, i know what it does but i don't understand how it does it if someone can explain it would be much appreciated, Thanks!
PHP Code:
new Array:GlobalArray;
public plugin_init() {
new string[][] =
{
"String 1",
"String 2",
"String 3",
"String 4"
}
new Array:StringHolder = ArrayCreate(32, 1);
for(new i=0; i < sizeof(string); i++)
ArrayPushString(StringHolder, string[i]);
// we pass an array :/
ArrayPushCell(GlobalArray, StringHolder);
arraytest()
}
public plugin_precache() GlobalArray = ArrayCreate(1, 1);
arraytest(){
new Array:AnotherArray;AnotherArray = ArrayGetCell(GlobalArray, 0);
if(AnotherArray != Invalid_Array){
new szString[32];
for(new i = 0; i < ArraySize(AnotherArray); i++){
ArrayGetString(AnotherArray, i, szString, charsmax(szString));
server_print(szString);
}
}
}