Detecting strings using tagof
#8

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.
Reply


Messages In This Thread
Detecting strings using tagof - by Maxips2 - 21.03.2013, 13:30
Re: Detecting strings using tagof - by Misiur - 21.03.2013, 13:33
Re: Detecting strings using tagof - by Maxips2 - 21.03.2013, 13:38
Re: Detecting strings using tagof - by Misiur - 21.03.2013, 13:42
Re: Detecting strings using tagof - by Maxips2 - 21.03.2013, 14:01
Re: Detecting strings using tagof - by Maxips2 - 21.03.2013, 14:10
Re: Detecting strings using tagof - by Misiur - 21.03.2013, 14:21
Re: Detecting strings using tagof - by Maxips2 - 21.03.2013, 14:22
Re: Detecting strings using tagof - by Misiur - 21.03.2013, 14:28

Forum Jump:


Users browsing this thread: 2 Guest(s)