Quote:
Originally Posted by ShapeGaz
Why you cannot use it like:
PHP Code:
// Get int value
new map:map = map_new();
map_emplace(map,"12","14");
new value[2];
map_find(map,"12",value,sizeof(value));
new intvalue = strval(value);
// Emplace int value
new value[2];
format(value,sizeof(value),"%d",10); // With the key you can do the same
map_emplace(map,"test",value);
1. I'll add to the next update
2. I'll add to the next update
3. What? Explain pls
|
If I have to convert every value to a string and vice-versa in PAWN why even use an unordered map?
Also it would be nice to be able to iterate through all elements.