IHaveRegistered
Knight
Convert.ToInt32()
Hiya, i'm trying to make a little script thingy here, and I can't seem to get Convert.ToInt32() to work. It simply gives me the error(s):
Line 49 is:
So, at this point the best I can do is:
which doesn't convert it properly all the time.
What would I have to #include in order to declare Convert.ToInt32?
Thanks!
-Aiden
Hiya, i'm trying to make a little script thingy here, and I can't seem to get Convert.ToInt32() to work. It simply gives me the error(s):
Code:
<filepath here>(49) : error C2065: 'Convert' : undeclared identifier
<filepath here>(49) : error C2228: left of '.ToInt32' must have class/struct/union type
Line 49 is:
Code:
int hitsmax = Convert.ToInt32((1 / wep[sub].speed) * 3000);
So, at this point the best I can do is:
Code:
int hitsmax = (int)((1 / wep[sub].speed) * 3000);
What would I have to #include in order to declare Convert.ToInt32?
Thanks!
-Aiden