![]() |
Just wondering if this is possible
Hey guys,
Im trying to learn GS2 now and im making some system that will read a string then spit out some data according to it. So an example of what i'm trying to do is: I want to get the information from a particular string but the program doesn't know what strings its going to receive so a predefined array is useless. PHP Code:
So the weapon name could be weapons/bat and the string could be clientr.some_weapon_bat So to construct the string I need I would do: PHP Code:
I've tried doing PHP Code:
|
it is possible, and is done all the time!
you would need to 'convert' the string into an 'object' eg; PHP Code:
edit; sorry, can't get my head to work, i guess i'm too tired for that, but i've done it before. |
Yep.
I.e: PHP Code:
|
Wow, thank you very much for the quickly reply :)
|
| All times are GMT +2. The time now is 10:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.