![]() |
Regarding Flags
I am having a little trouble with one of my scripts.
Basically it gets a certain name for instance: goteggs then I want it to check if(clientr.goteggs == 1){ but goteggs is a string, I tried if(clientr.(temp.quest) == 1){ with no luck. Am I doing something wrong? Thanks. |
First of all, it sounds like a boolean (based on the name of the variable), so either choose a less misleading name or just do if (variable).
I think you're trying to check the value of a variable whose name you don't know beforehand? This should work: PHP Code:
|
Thanks, and yes it was a boolean, got mixed up.
The @ seems really unnecessary.. |
Quote:
|
You should use clientr.("quest_" @ temp.questvar) instead of just clientr.(@temp.questvar) for the sake of organization in your clientr flags.
|
That's what I am already doing. o.0
|
| All times are GMT +2. The time now is 04:49 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.