Help with strbreak
Code:
#include < amxmodx >command must be /report <user> <reason> then write the file from reports folder. but doesn't work, i don't know why...if i strbreak with 3 args can't compile. any ideas? |
Re: Help with strbreak
Debug your code, add messages to see where the logic breaks(for example before/inside if checks, in loops, etc).
|
Re: Help with strbreak
i've debugged the code, but no information provided
Code:
Connection to Steam servers successful. |
Re: Help with strbreak
It does not appear that you have attempted to debug the code as Hamlet has suggested. If you have access to the server console, you can add server_print() functions to print out various values/strings to see what the variable actually contain. This will allow you to see why conditions are not being met.
More specifically, you are not using strbreak() properly. I'd actually suggest using parse() in this context instead. |
Re: Help with strbreak
Thanks a lot guys, since i replaced strbreak with parse it's works fine. The problem was strbreak.
|
Re: Help with strbreak
But, do you understand why? Also do you understand what we are saying about debugging your code? Because originally it was apparent you didn't understand what Hamlet was saying. If you learn how to do some basic debugging as described by myself and Hamlet, you'll be able to solve more of your problems on your own.
|
| All times are GMT -4. The time now is 07:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.