Team switch using database
Hello guys, I am begginer at scripting so I have problem for few weeks and I just give up :(
Code just doesn't work. I don't know. The thing is that if in database User with steamid have player6-player10 he have to go to CT else to T Code:
void SQL_CheckSPOT(client) |
Re: Team switch using database
You need to change each of the <= 0 to != 1. You could also simply use one StrContains and check if the string player exists. You also can't return Plugin_Continue to a void function.
|
Re: Team switch using database
Quote:
Do the SteamID checking properly, as explained in this post. Doing otherwise will produce unexpected results... Quote:
Quote:
|
Re: Team switch using database
That's what I meant, thanks!
|
Hello guys, I am beginner at scripting so I need your help. I need plugin which checks in database if steamid64 'player_spot' = 'player5 to player10' connect to CT , else to T
Thanks for help. Hello guys, I am dealing with this problem for long long time and no one fixed it. So please help me guys. Code: Code:
void SQL_CheckSPOT(client) |
Re: Need plugin which uses Database for force join
Quote:
People tend to be active on the forums that they are interested in, so if they are interested in assisting you with your code when you have issues (Scripting section), they may not necessarily be interested in providing full code (which would belong to "Plugin/Gameplay Ideas and Requests "), and the other way around. I therefore suggest you pay more attention in the future, and post them only in the most relevant section of the board, and not just the first section you see. This way will bring the best and most useful responses.. Edit 2018-07-10 14:31 CEST: I have now merged all your threads (cross posts about the same issue), do NOT cross post the same thing towards multiple threads, and do not bump. If no one responds, there are usually things you can do better in your explanation, such as explaining how the code reacts when you use it, including all error output it produces, etc. |
Re: Team switch using database
"char[] Query = new char[150];"
Is it only me, why index a query string? |
Re: Team switch using database
Quote:
Arrays need a length, which includes char arrays. |
Re: Team switch using database
It was kinda new to me though, never done it and works the way I want it to work.
Atleast I understand why ^^ EDIT: @Neuro Toxin "char[] Query[150];" Query is an array. 150 is a size... Only difference is that "char[] Query = new char[150];"'s size may be dynamic. It wouldn't matter that much in querying. |
All times are GMT -4. The time now is 18:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.