![]() |
Player Classes and Variables
I am attempting to create player. variables through a player-joined class. If this is not possible, then I suppose that is valuable information, and I will resort to something like clientr. variables, but nonetheless, I thought logically I would be able to create player. variables within a class when it's joined by using this. variables in the class.
I am attaching a class to a player upon log-in in the Control-NPC, as such: PHP Code:
PHP Code:
PHP Code:
Weapon NPC: PHP Code:
PHP Code:
EDIT: Solved. For future reference for all of those rusty folk like myself out there, here is what worked for me: Control-NPC: PHP Code:
PHP Code:
|
Because you're referring directly to the player, I'd put the check INSIDE the class. Otherwise you're defying the point of player classes.
Inside the 'foobar' class I'd do the following HTML Code:
//Call the check on login |
All times are GMT +2. The time now is 08:06 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.