21.03.2013, 14:21
If it's only single parameter
And you pass the parameter with single quotes.
pawn Код:
stock MySQL_SaveCharacterStat(playerid, field[], E_CHARACTER_INFO:stat, format)
{
switch(format)
{
case 'i', 'd': printf("%d", gCharacterInfo[playerid][stat]);
case 'f': printf("%f", gCharacterInfo[playerid][stat]);
case 's': printf("%s", gCharacterInfo[playerid][stat]);
}
}