Raised This Month: $51 Target: $400
 12% 

Database to chat ?!?!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DazhLarsson
Junior Member
Join Date: Dec 2012
Location: Denmark
Old 01-17-2020 , 17:07   Database to chat ?!?!
Reply With Quote #1

If i want a data from my database to print to chat how would i do that on command execute?
Sorry im new to SP and really lost..
DazhLarsson is offline
cristian20042
AlliedModders Donor
Join Date: Jun 2016
Location: Romania
Old 01-31-2020 , 08:55   Re: Database to chat ?!?!
Reply With Quote #2

1. Learn SourcePawn
2. Make the plugin connect to the database
3. When the player is executing the command, use a query with a callback function to print the chat message.

Read this: https://wiki.alliedmods.net/SQL_(SourceMod_Scripting)
It is very useful.
__________________
Steam - https://steamcommunity.com/id/sniperheroofficialu/
Discord - SniperHero#8545
cristian20042 is offline
Reply



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 05:38.


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