warnings: loose indentation and tag mismatch
Hello, i have a question. What causes warnings loose indentation and tag mismatch?
|
Re: warnings: loose indentation and tag mismatch
Code:
public ScreenFade_Zariche(id) |
Re: warnings: loose indentation and tag mismatch
Loose indentation is when the indentation of your code is no consistent. This does not affect code execution but it's best if you don't ignore this warning because proper indentation helps make the code more readable and make it easier to find certain mistakes.
Tag mismatch is what is says, it's when two variables used together don't have matching tags. This may or may not affect code execution depending on which tag is mismatched. It usually means that something in the logic of your code is wrong and should be fixed. P.S. There is no such thing as __FixedUnsigned16() in AMX Mod X so I'm not sure what that is. If you still need help, you need to provide more information i.e. it's best if you attach the whole .sma file to your post and provide the whole compiler output. |
Re: warnings: loose indentation and tag mismatch
Quote:
Code:
__FixedUnsigned16(Float:flValue, iScale) |
Re: warnings: loose indentation and tag mismatch
That function seems to be ok. Since you've not posted any more information about the warnings, I can only assume you've fixed everything.
|
Re: warnings: loose indentation and tag mismatch
Quote:
Code:
Code:
public ScreenFade_Zariche(id)Code:
|
Re: warnings: loose indentation and tag mismatch
The topic is about loose indentation and a tag warning. Did you fix those? If no, you need to provide more information. If yes, you should start a new thread inquiring about your new topic. However, make sure you make a serious effort to debug your code on your own.
|
Re: warnings: loose indentation and tag mismatch
for(--num; num>=0; num--) lol, what is this?
-> for(new i; i < num; i++) Remove the brackets of message_begin and make all write_* at the same level as message_begin. The second bracket of the for() is bad. That code looks really bad. |
Re: warnings: loose indentation and tag mismatch
Quote:
Still doesn´t work.. //edit, it crashes server :) : L 01/01/2019 - 03:05:57: (map "") Host_Error: WriteDest_Parm: not a client |
Re: warnings: loose indentation and tag mismatch
Quote:
|
| All times are GMT -4. The time now is 07:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.