0Admin system Problem 2:
#5

Well, it's simple...:

Quote:
Originally Posted by ******
Посмотреть сообщение
I need to upload a new version anyway, there are a few minor "issues" (not bugs) with the current one that have been fixed. One of these fixes would address this problem slightly by making it possible to omit the "extract" macro from sscanf, but that's no use if you want both. I might be able to change the sscanf code to:

pawn Код:
#define hex:%0;unformat(_:EXTRZ:EXTRX:%1); %0;unformat(_:EXTRZ:EXTRX:%1);
That SHOULD actually fix the problem entirely, would you mind replacing "#define hex:" in your "sscanf2.inc" file with that line and see if the errors go? The only problem with this is that if people declare a variable as "hex:" when using "extract", they might then expect it to be printed as "hex" when they use this library without an explicit tag, even though in both cases the "hex:" tag is a fake hint, rather than a true tag (sort of).

Maybe I should use "from_hex:" and "from_playerid:" instead to make it clear that they STARTED as hex, but now aren't (although they sort of are given storage methods). Anyway, this isn't really the right topic for this - sorry Slice.
Or, you can delete:
pawn Код:
else if ( iTag == tagof( hex: ) || iTag == tagof( Hex: ) )
{
    // Code..
}
Nothing happens... Because 0-Admin doesn't use that snippet of code...
Reply


Messages In This Thread
0Admin system Problem 2: - by denNorske - 15.04.2012, 12:44
Re: 0Admin system Problem 2: - by denNorske - 15.04.2012, 15:27
Re: 0Admin system Problem 2: - by denNorske - 17.04.2012, 04:31
Re: 0Admin system Problem 2: - by iOmar - 17.04.2012, 06:03
Respuesta: 0Admin system Problem 2: - by aRoach - 17.04.2012, 07:18
Re: 0Admin system Problem 2: - by denNorske - 18.04.2012, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)