Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Basic Inventory.

$
0
0
Hello People!!

how to start with one inventory script??

SAVE FROM : MYSQL R41-2

structure:


ItemID

ItemName

ItemOwner?



open inventory example:

cmd:inventory

and show DIALOG_STYLE_TABLIST_HEADERS

Item Name' Item quantity, Item Description


Code:

CMD:Inventory(playerid, params[])
{

                ShowPlayerDialog(playerid,9500, DIALOG_STYLE_TABLIST_HEADERS, "Inventory",
                                "Item Name\tItem Quantity\tItem Description\n\
                                Mobil Phone\t{FFFFFF}1\t{2ECC71}Mobile Phone\n\ // example...
                                Pizza{FFFFFF}\t1\t{2ECC71}Food",
                                "OK", "Close");

                    return 1;
}


THANK YOU!!! + RESPECT

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>