SSCANF Question (more conformation) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SSCANF Question (more conformation) (
/showthread.php?tid=488535)
SSCANF Question (more conformation) -
sammp - 18.01.2014
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.");
}
}
Re: SSCANF Question (more conformation) -
sammp - 18.01.2014
Never mind guys, it works fine. But if there still is a better method feel free to provide it.