SSCANF Question (more conformation)
#1

Alright, so this code works. Though is there a better way of doing it?:

pawn Код:
if(sscanf(params, "uD(0)", id, rank)) return TextDrawShowForPlayer(playerid, CommandTD[playerid]);
                {
                    if(rank)
                    {
                        SendClientMessage(playerid, GREEN, "You did something to the parameter");
                    }
                    else
                    {
                        SendClientMessage(playerid, RED, "You didn't do anything to the parameter.");
                    }
                }
Reply
#2

Never mind guys, it works fine. But if there still is a better method feel free to provide it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)