Simple function/include to return command paramters?
#3

Is there any way so i don't have to type this in when i want to make a new command?

pawn Код:
new id;
if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
Reply


Messages In This Thread
Simple function/include to return command paramters? - by linuxthefish - 02.04.2011, 12:55
Re: Simple function/include to return command paramters? - by SchurmanCQC - 02.04.2011, 13:00
Re: Simple function/include to return command paramters? - by linuxthefish - 02.04.2011, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)