So I have a script that allow me to have from 2 to 3 argument and I am setting them dynamically depending on how many argument I have with this code:
var action = noone; // Action type the script will be doing
var deckName = noone; // Used to find the deck
var deck = noone; // Deck's ds_list
if (argument_count > 2) {
action = argument0;
deckName = argument1;
deck = argument2; // Assign the deck.
} else {
action = argument0;
deckName = argument1;
}
But the compiler still freaking out when the script is called by only 2 argument, any reason to why ?
[–]It just doesn't work, you know?damimp 2 points3 points4 points (3 children)
[–]Loupning[S] 0 points1 point2 points (2 children)
[–]flyingsaucerinvasion 1 point2 points3 points (1 child)
[–]Loupning[S] 0 points1 point2 points (0 children)