We need more code , we need to know how you initialize arg2

-----Original Message-----
From: Adrian Allen [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 11, 2002 3:58 PM
To: [email protected]
Subject: Obj Values




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


-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom

  • Obj Values Adrian Allen
    • RE: Obj Values Despret, Jerome

Reply via email to