Raised This Month: $ Target: $400
 0% 

extract sql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Iulyy
Junior Member
Join Date: Sep 2007
Location: Romania
Old 12-21-2008 , 16:07   extract sql
Reply With Quote #1

Quote:
new query[512]
admin_id = format(query, 511, "SELECT id FROM amx_amxadmins WHERE username = '%s'", admin_nick)
format(query, 511, "INSERT INTO `%s` (player_id,player_ip,player_nick,admin_ip,adm in_steamid,admin_nick,ban_type,ban_reason,ban _created,ban_length,server_name,server_ip,admin_id) VALUES('%s','%s','%s','%s','%s','%s','%s','%s ','%i','%s','%s','%s:%s','%s')", tbl_bans, player_steamid, player_ip, player_nick, admin_ip, admin_steamid, admin_nick, g_ban_type, g_ban_reason, ban_created, BanLength, server_name, g_ip, g_port, admin_id)
A part of this cod it's from amxbans and i'm not sure if admin_id it's corect.
In this script i want to extract admin id from the datebase and insert if a admin is banning a player.
I hope you understund what i want to say because my english is not to good.
__________________
loading...
Iulyy is offline
Send a message via Yahoo to Iulyy
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode