The fix for the problem below was simple
I added the word argument and the = to make it look like:
argument = one_argument(argument, arg1);
argument = one_argument(argument, arg2);
Before it looked like:
one_argument( argument, arg1 );
one_argument( argument, arg2);
Thats one of those "I should have went to bed and done it in morning"
mistakes that will still compile and wont cause a crash but still
ruins the function.
I have had a problem writing a skill that involves changing the
obj->value[1] = value;
What its doing is only setting the value as the first argument
its something like this.
if ( !str_prefix( arg1, "1" ) )
{
obj->value[1] = atoi( arg2);
}
I have noticed parts of the code use !strcmp and !str_cmp instead
of !str_prefix does anyone have any ideas whats going wrong here
no matter what atoi(arg2) the value is always set to 1 even if
the arg2 is 23445 it will still set it to 1 because arg1 has to be
1 obviously the check if (!str_prefix(arg1,"1")) sees to that but
its killing the function making it useless. Suggestions?
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com