View Single Post
Old Dec 2nd, 2006, 8:00 AM   #14
m0rb1d
Newbie
 
Join Date: Nov 2006
Posts: 19
Rep Power: 0 m0rb1d is on a distinguished road
Quote:
Originally Posted by Arevos View Post
Also, you probably want something more like:
%hit = gethit%()

FUNCTION gethit%()
    RANDOMIZE TIMER
    gethit% = INT(RND * 20) + 1
END FUNCTION

Whenever I do something like that, it gets me errors. Expecting an Expression error I believe. Im not at my home pc atm, so, I cant really fire it up and give you the exact error.

Also, did you intentionally use %hit instead of hit%? I've not seen anything stating using the % before the variable name.
m0rb1d is offline   Reply With Quote