23.07.2012, 13:39
Assuming you DO HAVE a PlayerInfo system,then add to your enum...
Then the command only looks like: /giveitem <playerid> <itemID>,but when the player receives the item,at the end of command:
Then you do:
And now you don't have to mess up with memorizing numbers,etc.
pawn Code:
enum
{
iNumber//ITEM number
};
pawn Code:
PlayerInfo[playerid][iNumber]++;//he now has one more item
pawn Code:
INI_WriteString(file, "GenericItem", PlayerInfo[playerid][iNumber]);