Quote:
Originally Posted by Misiur
If it's only single parameter
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]); } }
And you pass the parameter with single quotes.
|
I thought about doing that, but I thought that it might cause conflicts.