warning 217: loose indentation & say commands
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. |
loose identation just weans that the code isn't tabbed correctly,
show your plugin and i'll help you with that and your other problem. |
Quote:
|
The Code
Here is the code
Code:
/* |
The simplest fix for "loose indentation" warnings is to add this line right before your first #include:
Code:
#pragma tabsize 0 |
aww mahnsawce thats mean.. poor compiler... its not its fault people use spaces instead of tabs :cry:
|
Quote:
|
Quote:
Still, any tips to why the say /commands wont work? |
| All times are GMT -4. The time now is 17:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.