15.06.2013, 03:25
I have a very vague understanding of Array's because I just started programming in PAWN again. I have been off doing languages such as Java. Any ways, I'm trying to make an array of Text that will be randomly blurted out over the servers chat. Now when I try and iterate through the array I find myself not knowing how many elements are in it, therefore I cannot tell the code when to stop iterating.
Here is my code currently, with the array present:
Here is my code currently, with the array present:
pawn Код:
new CmdList[3] = {
"{FFBF00}--------------------------------------------------",
"{FFBF00}/©reatehouse - Displays the house creation dialog",
"{FFBF00}--------------------------------------------------",
;
public OnFilterScriptInit(){
print("| RHousing Version: 1.0 |");
for (new i = 0; i>=0; i++){
if (CmdList[i] != 0){
print("yay");
}
}
return 1;
}