• Pdata key
    7 replies, posted
How to learn a key of PDATA of players on my server? [url]http://wiki.garrysmod.com/page/Player/GetPData[/url]
Uhhh, what are you asking???
I'm pretty sure he's asking how to use GetPData, most likely either a kid or foreign. Read the syntax bro.
[QUOTE=xthenarwhalx;47467238]I'm pretty sure he's asking how to use GetPData, most likely either a kid or foreign. Read the syntax bro.[/QUOTE] Use [CODE]ply:setPData("Some key name" , somevalue)[/CODE] to set values and [CODE]Use ply:GetPData("the key name you used") [/CODE] That will get the PData
[QUOTE=0V3RR1D3;47467601]Use [CODE]ply:setPData("Some key name" , somevalue)[/CODE] to set values and [CODE]Use ply:GetPData("the key name you used") [/CODE] That will get the PData[/QUOTE] SetPData, not setPData. Case matters.
[QUOTE=r0uge;47467728]SetPData, not setPData. Case matters.[/QUOTE] I Did not test it, And im sure he would of figured that out...
I should receive PDATA key on a nickname. A nickname for example - Vesy. I should learn PDATA KEY of the player of Vesy Forgive for my English:words:
[QUOTE=godred2;47467831]I should receive PDATA key on a nickname. A nickname for example - Vesy. I should learn PDATA KEY of the player of Vesy Forgive for my English:words:[/QUOTE] When you use PData it is unique to each player. So if you call ply:SetPData("SomeName",value) is will be seperate from if you called it on a defferent player. The key should normaly be the name of the value you are saving but it can be anything
Sorry, you need to Log In to post a reply to this thread.