Raised This Month: $ Target: $400
 0% 

[HELP]Save Group Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-18-2015 , 06:54   Re: [HELP]Save Group Damage
Reply With Quote #1

Quote:
Originally Posted by Depresie View Post
as i said, i have tried with a bool before and i saved values in the bool via user in the loop, but when a player joined the group the group damage for him was 0 instead of the damage done by the group before he joined.
That's not true, because a bool is either true or false. You can't store anything in them.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-18-2015 , 12:14   Re: [HELP]Save Group Damage
Reply With Quote #2

Quote:
Originally Posted by wickedd View Post
That's not true, because a bool is either true or false. You can't store anything in them.
You can store numbers in a bool, but you will get a tag mismatch. The same thing is for floats. This are just tags. Of course bool should only be used with true/false, but your afirmation could create confusions.
__________________

Last edited by HamletEagle; 10-18-2015 at 12:17.
HamletEagle is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-18-2015 , 12:56   Re: [HELP]Save Group Damage
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
You can store numbers in a bool, but you will get a tag mismatch. The same thing is for floats. This are just tags. Of course bool should only be used with true/false, but your afirmation could create confusions.
That's only because we are in Pawn here and there is only a signed long integer data-type. Other languages that have a true (no pun intended) boolean data-type would make a bigger stink out of it. May as well set him straight here.
__________________

Last edited by Bugsy; 10-18-2015 at 12:57.
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 22:03.


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