ID:173096
 
It doesn't! I've does this kinda code thousands upon thousands of times and yet this is the first time ever ive gotten a problem with it
mob
proc
MasterBattle(mob/enemy)
if<usr.islocked == 0)
usr.islocked = 1


Of course theres more after it but thats the part i have problems with, heres the errors i get:
NewBattle.dm:9:error: missing condition
NewBattle.dm:9:error: missing left-hand argument to <.
NewBattle.dm:9:error: missing left-hand argument to <.
It makes no sence, ive done that over a million times, and this time is the only time i got problems with it, ive looked it over and looked it over, and still no results, line 9 is the if(usr.islocked == 0) line.
Metroid wrote:
It doesn't! I've does this kinda code thousands upon thousands of times and yet this is the first time ever ive gotten a problem with it
mob
> proc
> MasterBattle(mob/enemy)
> if<usr.islocked == 0)
> usr.islocked = 1

Of course theres more after it but thats the part i have problems with, heres the errors i get:
NewBattle.dm:9:error: missing condition
NewBattle.dm:9:error: missing left-hand argument to <.
NewBattle.dm:9:error: missing left-hand argument to <.
It makes no sence, ive done that over a million times, and this time is the only time i got problems with it, ive looked it over and looked it over, and still no results, line 9 is the if(usr.islocked == 0) line.


mob
> proc
> MasterBattle(mob/enemy)
> if(usr.islocked == 0)
> usr.islocked = 1


its a ( not a < Like you had =P
In response to Vash_616
OMFG thanks, i cant believe i didnt see it, I just woke up from sleepin and ive been down lately so i didnt even notice. THANKS ALOT!
I know I've only told you this about 50 times, but let's make it 51:

No put usr in proc. Ungh.

Lummox JR
>mob
> proc
> MasterBattle(mob/enemy)
> if<usr.islocked == 0)
> usr.islocked = 1



Oke oke here is what we got as answres, NO USR in proc =P (duh) and you used < instaid of (

mob
proc
MasterBattle(mob/enemy)
if(src.islocked == 0)
src.islocked = 1


Then we have this, now tell me, WTF is the use of "mob/enemy" ? Try keeping your codes efficient, now this wont seriously slow down your game, it wont do anything but its just useless, leave it out, useless stuff makes your code less logical when you read it over in a month and you try to find a bug or something.

Greetz Fint

PS: IF this is a code thats part of something else where "mob/enemy" might be used then nvm my post =P but still a good tip for all people n_n