MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000539Soldat Dedicated ServerScripting Corepublic2014-02-28 01:012014-05-09 12:50
Reporterkicikici 
Assigned ToExHunter 
PriorityimmediateSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
Platformx64OSWindowsOS Version7 SP1
Product Version2.7.7b1 
Target VersionFixed in Version 
Summary0000539: Problems with Players[] array
DescriptionExample - player kicikici enter to server and leave after 5 seconds.
After his leaving, variables:
Players[last kicikici's ID].Alive=true;
Players[last kicikici's ID].Human=true;
Players[last kicikici's ID].Name='kicikici';
I didn't check other variables. I am not an expert but this things should be "cleaned" after players leaving.
TagsNo tags attached.
John
Attached Files? file icon main.pas [^] (848 bytes) 2014-04-29 12:55
jpg file icon player.jpg [^] (251,646 bytes) 2014-04-29 12:57

- Relationships

-  Notes
(0002231)
ExHunter (developer)
2014-04-28 16:23

When do you exactly do the check of the variables?

Do you have an example script?
(0002234)
kicikici (reporter)
2014-04-29 13:11

In my old SC2 scripts I used IDToName(ID)<>'' to check if player is present on the server and it worked. That's why I created this ticket. But to be honest now I don't think that is something wrong with this. I can always check Players[ID].Active to be sure if player is present on server. Variables like Players[ID].Name and Players[ID].Human don't have to be restored to default.
(0002257)
ExHunter (developer)
2014-05-09 12:21

So I could mark this as closed? Because that's basically the point of Players[ID].Active. :)
(0002258)
kicikici (reporter)
2014-05-09 12:36

Yes.
(0002259)
ExHunter (developer)
2014-05-09 12:50

Players[ID].Active makes a clean not needed.

- Issue History
Date Modified Username Field Change
2014-02-28 01:01 kicikici New Issue
2014-04-28 16:23 ExHunter Note Added: 0002231
2014-04-28 16:23 ExHunter Assigned To => ExHunter
2014-04-28 16:23 ExHunter Status new => feedback
2014-04-28 16:23 ExHunter Assigned To ExHunter =>
2014-04-29 12:55 kicikici File Added: main.pas
2014-04-29 12:57 kicikici File Added: player.jpg
2014-04-29 13:11 kicikici Note Added: 0002234
2014-04-29 13:11 kicikici Status feedback => new
2014-05-09 12:21 ExHunter Note Added: 0002257
2014-05-09 12:36 kicikici Note Added: 0002258
2014-05-09 12:50 ExHunter Note Added: 0002259
2014-05-09 12:50 ExHunter Status new => closed
2014-05-09 12:50 ExHunter Assigned To => ExHunter
2014-05-09 12:50 ExHunter Resolution open => no change required


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker