|
Author
|
Message
|
|
Junior Member
|

09-13-2004
, 22:00
warning 217: loose indentation & say commands
|
#1
|
Just finished writing another a moneyscript (Im very original) and got it compiling with out errors. However, i have like 7 of these warnings.
warning 217: loose indentation
I moved things togeather and apart yet no avil.
if(read_argc() == 0) { // Reads arguments
or
cs_set_user_money (id , 16000,1 )
There is an example of 2 i have, if you can point me in the right direction im sure i can find out the rest.
Also, while my script picks thing up out of the console, i like to be lazy, and so do other people who play where i do, so i want my script to pick up out of console.
register_concmd("say /givemoney","give_cash",-1,"Gives $16000 to the person")
I was hoping it would pick up on it in the console, so i could type
/givemoney Addict
for example, when i type /givemoney with out a name my debug kicks in and says that it wants a user, but if i add a name it just sort if ignores it and uses it as say. however, if i use it through the console it works like a charm. Thanks, i want to make sure my scripts dont suck before posting them for public consumption.
|
|
|
|