furniture system
#1

Hey, so how its work ? how to place object, edit it and save it with mysql ??need little example thanks
Reply
#2

Make an array with all the furniture object names, ids and cost, loop the array and show them as a list in a dialog box, if player has enough money for the furniture, create a player object and let the player edit it.

for example:
PHP код:
#define MAX_FURNITURE (7)
enum E_Furniture
{
    
ModelName[15],
    
ModelObject,
    
ModelPrice
};
new const 
gFurniture[MAX_FURNITURE][E_Furniture] =
{
    {
"TV remote"1992050},
    {
"Clock"1982550},
    {
"Books"281320},
    {
"Old TV"14772100},
    {
"Magazines"282720},
    {
"TV"1518200},
    {
"Grey TV"2322300}
}; 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)