Raised This Month: $ Target: $400
 0% 

What is the difference between those two functions?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-01-2022 , 20:45   Re: What is the difference between those two functions?
Reply With Quote #1

They are not functions, they are variables/arrays. You are correct in that they store information.

A Float holds a floating point decimal: 3.146534
A bool holds true or false

It depends on what you need to save, obviously:
For the bool, you could store whether or not a player is connected, is a bot, etc
For the Float, you could store any numerical value that is a decimal (non-integer)
__________________

Last edited by Bugsy; 06-01-2022 at 20:45.
Bugsy 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 21:22.


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