11.07.2015, 21:32
I thought for a while about it, but I thought that it would be denied from the start, but ... well ... I should try to give this suggestion, it looks useful:
What about 2 IDs per-function ? For example
would add a new default 0 id parameter:
Why ? Well ... for when we need two IDs, of course. The best examples I can give are the house items, the first ID would be house id, and the second ID would be the item id in that house.
For example:
would become:
What about 2 IDs per-function ? For example
pawn Код:
native SetGVarInt(const name[], value, id = 0);
pawn Код:
native SetGVarInt(const name[], value, id = 0, id2 = 0);
For example:
pawn Код:
format( gsString, 64, "HouseItemBuyPrice%d", houseid );
SetGVarInt( gsString, 10000, itemid );
pawn Код:
SetGVarInt( "HouseItemBuyPrice", 10000, houseid, itemid );