Raised This Month: $ Target: $400
 0% 

Solved Save/Get multiple different values in the same variable per player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sursista
Senior Member
Join Date: Jul 2010
Location: Spain
Old 02-17-2022 , 08:28   Save/Get multiple different values in the same variable per player
Reply With Quote #1

Hello, I'm doing an assist system for the ZM mod, the problem occurs when several players get an assist from the same zombie. What happens is that the variable:

PHP Code:
name[victim][attacker] = true 
the attacker is replaced by the new attacker, and I can't save multiple variables for both the victim and the attacker to get the correct player id (when the player go dead). I am currently doing a:

PHP Code:
for(new 1<= 32i++) 
to check how many attackers have gotten an assist when the victim dies. Sometimes it works fine and gives you the name of that player, other times you don't even get assist or you get the name of a different victim (who didn't get assist)

Last edited by sursista; 02-18-2022 at 08:23.
sursista is offline
Send a message via MSN to sursista Send a message via Skype™ to sursista
 



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 11:44.


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