I'm building up a plugin that saves data into a file. The problem is with the number of arguments. I'm trying to save 4 values (IT WORKS) but, If I execute the command with 3 values, the data line is also created, but with 3 values I can't make anything (for different functions). Anyway... this is the code:
PHP Code:
public function(id, lvl, cid)
{
if(!cmd_access(id, lvl, cid, 4))
return PLUGIN_HANDLED
read_argv(1, argOne, 31)
read_argv(2, argTwo, 31)
read_argv(3, argThree, 31)
read_argv(4, argFour, 31)
}
I know I can't have 4 arguments, but maybe is there a way to use 4 arguments.