I need on retrieveing individual data.
pInfo[33][Class][Data]
I need to get [data] info from a player and change it. Need more info? Ill gladly add. I found this from... https://forums.alliedmods.net/showpo...&postcount=198 EDIT: The topic was 3 months old and wasnt really active so I felt like making new thread. And this could help other players too. EDIT2: What is this called anyway? :D |
Re: I need on retrieveing individual data.
Depends on what you want to change:
PHP Code:
|
Re: I need on retrieveing individual data.
Quote:
But how I can check which class does a person have? [Class]? Do I need new variable for that? or something? Example I wanna add xp on his class which he used. |
Re: I need on retrieveing individual data.
Yeah use a variable
PHP Code:
|
Re: I need on retrieveing individual data.
Quote:
PHP Code:
Some of this what u might see messy is my own trying :D |
Re: I need on retrieveing individual data.
Instead of creating
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: I need on retrieveing individual data.
Last time I used it that way but gave me warning but never tested it. Meybe I should test it now.
(Tag mismatch) PHP Code:
|
Re: I need on retrieveing individual data.
Change
PHP Code:
PHP Code:
PHP Code:
|
Re: I need on retrieveing individual data.
Okay my problem is that i cant make class names visible ingame. But it recognizes them.
If u try change twice to same class it says uve already that class in use. So my problem is that I've managed to make individual xp for classes but it wont save them. EDIT: Adding code in a moment... fixing couple things i found. EDIT2: Added script. And it crashed on level up. EDIT3: Found reason and fixed why crash. I used wrong way to check Level xp needing. Atm problem is doesn't show up class name and doesnt save xp. (There is individual xp but not saved) PHP Code:
|
Re: I need on retrieveing individual data.
You still need this to print out the name of the class
PHP Code:
PHP Code:
PHP Code:
PHP Code:
A typical save function would look something like this: PHP Code:
|
| All times are GMT -4. The time now is 20:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.