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?

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


Reply via email to