FileExist or in Mysql number exist
I donīt know how i can do to show if a file exist in the pc of the player (in folder cstrike), please help!
If i canīt do this... i can read a table mysql and show if a number (for example: 777) exist? Tnkz! :D |
You cant read if a file exists on a client. I don't understand what you want with MySQL you can see if a value exists for example
SELECT * FROM `myTable` WHERE `myColumn` = '777' |
You CAN tell if a file exists on a client or not:
Use the native to force a client to have a file. Catch the forward for when players have inconsistant files, and HANDLE it. Then, you know if a client has a file, depending on whether or not they get inconstant run on them or not ^^ |
I create a anti cheat(Client program equaly Cheatin death) and i need the plugin show if the client executed
__________________________ The a player run the client, this insert in a database mysql the ip of the player. When enter in the server.... The plugin show if in mysql exist the ip... If the ip exist, because the player execute the client If the ip donīt exist, because the player donīt execute the client I need how i can do the plugin show if the IP of the player registered in the mysql Tnkz!!!!!! :P |
I create this.. but i donīt know if correct, can you tell me if this need another comand or if I have got errors? (Sorry my bad english :P )
Code:
// MYSQL Show the number of the IP exist in a database XX |
use this
Code:
And you should only connect to the database once. Not everytime someone connects. Also "client_connect" is already a function you shouldn't use what you are doing. |
I have this when i compile :(
/home/users/amxmodx/tmp3/textAS0JHb.sma(34) : error 017: undefined symbol "player_ip" /home/users/amxmodx/tmp3/textAS0JHb.sma(34 -- 35) : error 088: number of arguments does not match definition /home/users/amxmodx/tmp3/textAS0JHb.sma(35) : error 017: undefined symbol "result" /home/users/amxmodx/tmp3/textAS0JHb.sma(35) : fatal error 107: too many error messages on one line Code:
#include <amxmodx> |
Stop making a new connection on client connect! it is a waste of connections (especially since you aren't closing them).
you forgot new Result:result at the top and you forgot new player_ip[36] and you forgot get_user_ip() Also your indentation sucks. |
I donīt know what can you say whit wasted conections.. :(
mmm i put the plugin and compile perfect... but when put in the server... Code:
unknown unknown unknown juaz.amxx bad loadCode:
Tnkz! :P :D |
Sorry! Tnkz! for all y go to create the mysql to test if connect correctly, the plugin are runing !
Code:
IP player registe 1.0 ACA juaz.amxx runningWhat, How, when and where must I put to close coneection? :lol: Quote:
|
| All times are GMT -4. The time now is 16:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.