![]() |
new TServerPlayer() and a few bugs
First off, it's case sensitive. This is a bad thing. Especially since the player tends to be offline, there is no way to get the proper case for their account.
Secondly, it seems it does not properly support variables: temp.pl = new TServerPlayer("DustyPorViva"); Works. temp.a = "DustyPorViva"; temp.pl = new TServerPlayer(temp.a); Does not. temp.a = "DustyPorViva"; temp.pl = new TServerPlayer((@temp.a)); Does work, however. |
Quote:
|
Quote:
|
Quote:
|
The "new" operator is special because of compatibility reasons, eventually that can be dropped sometime though. Right now it's forcing the argument to be a string, if you write (myvar) then it's using it as "myvar" instead of retrieving the value of myvar.
|
Quote:
|
| All times are GMT +2. The time now is 01:45 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.