Help Please
can someone tell me why this doesnt work properly?
when i test it with just one person( my self ) it works because im slot #1 but when someone else is in slot #1 it doesnt work. its suposed to connect to a SQL DB then loop through all players STEAMIDs on the server and compare then with ones located in the admins table. if it one matches it shud print Alias Name then STEAMID followed by Real Name ie Player??? STEAM123 Dave Code:
think its to do with the loop |
Do the people that are trying to use it not have Kick access?
Is there an open connection to the SQL? |
requried level is kick and there is a connection to sql
|
right now you are mixing a player check loop and an admin check loop. you need two different loops: one that loops through all of the players, and one inside that searches all steam ids in the database and attempts to match it with the current player.
i would recommend querying the server only once and saving the admin steam ids into a variable so you don't have to use mysql over and over. it would look something like this: Code:
i don't know exactly how amxx's mysql works so you'll have to work to adapt it. |
ok thanks will give it a try
|
cant seem to figure it out can someone help?
heres the complete code Code:
|
Code:
Code:
just something that I noticed off the back. Another thing I noticed is the thread title is "Help Please". Next time please name is something related to what you need help with. In example: "SQL Query Help" |
| All times are GMT -4. The time now is 20:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.