08.04.2009, 23:21
What is this supposed to do exactly?
Sscanf is used to save things to variables, and give out some text if the user inputs the wrong syntax... I can't make sense of why you'd want to compare it to confirm..
EDIT: I think what you're after is this sort of thing:
That will save whatever the user types to "confirm" if it's a string. If the user failed to type anything, or gave an interger/Float, it will return the SendClientmessage.
pawn Код:
if(sscanf(params, "s", confirm) == "confirm")
EDIT: I think what you're after is this sort of thing:
pawn Код:
if(sscanf(params, "s", confirm)) SendClientMessage(playerid, 0xFF00FFAA, "Usage: /command string");