Raised This Month: $ Target: $400
 0% 

[?]saving a value on user id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-30-2015 , 11:57   Re: [?]saving a value on user id
Reply With Quote #1

You simply create a global array with a size of 33. Then you index that array using "id" and assign the value you want to store to that cell of the array.

PHP Code:
new PlayerData[33]


...

function(
id)
{
    
PlayerData[id] = // Save the data for the player
}

other_function(id)
{
    new 
MyVariable PlayerData[id// Get saved data for player

__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode