21.03.2013, 14:10
I actually found a very nice way to do it.
Here is an example to test:
Tested, working great
Here is an example to test:
pawn Код:
stock MySQL_SaveCharacterStat(playerid, field[], E_CHARACTER_INFO:stat, format[])
{
switch(format[0])
{
case 'i', 'd': printf("%d", gCharacterInfo[playerid][stat]);
case 'f': printf("%f", gCharacterInfo[playerid][stat]);
case 's': printf("%s", gCharacterInfo[playerid][stat]);
}
}
