katursis / Pawn.CMD

🚀 Plugin-powered command processor for SA:MP server
MIT License
119 stars 13 forks source link

How to detect and separate parameters? #45

Closed Walter-Correa closed 2 years ago

Walter-Correa commented 2 years ago

Hello! I would like to use sscanf to detect and separate parameters to create command log which saves not only typed command but parameters, example: "The player Junior typed /ban 1 Hacking"

Can anybody help me?

public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
    return 1;
}
Walter-Correa commented 2 years ago

Forgive me, I said nonsense, because when using printf("%s",params); the parameters already appear separate!