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

Set Flags and Immunity & Output multiple query values


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 12-06-2020 , 09:57   Set Flags and Immunity & Output multiple query values
Reply With Quote #1

Hello.

How can I store all the values in a array from a query?

What I mean is, I have a table with a column called, for example, column1. That column has 3 values saved: 'SourceMod', 'Metamod' 'Valve'

How can I get all these values within a query, store that in a string / array and print to the player chat in 2 ways:

Way 1:
Code:
We got these results from the query: SourceMod, Metamod, Valve.
or
Code:
We got these results from the query: SourceMod, Metamod and Valve.
Way 2: Print all the values as a message:
Code:
SourceMod.
Metamod.
Valve.
Another issue if you don't mind. I need to set flags and immunity to a player through the source.

How can I do that?

Best Regards,

SpirT.
__________________

Last edited by SpirT; 12-07-2020 at 04:39.
SpirT 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 09:59.


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