ID / Part of Name on Commands written with ZCMD and sscanf.
#1

Hey,

I'm writing a game mode which includes ZCMD for Command Processing.
I want to write commands which are able to either have a playerid or a Part of the name as an input.
Problem is with ZCMD I'm only able to get a certain type of variable like so:
pawn Код:
if(sscanf(params, "s[48]", iName)) return SendClientMessage(playerid, COLOR_AQUA, "USAGE: ...");
or
pawn Код:
if(sscanf(params, "ii", iName)) return SendClientMessage(playerid, COLOR_AQUA, "USAGE: ...");
Any toughts?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)