Showing option 1, for all options of a single command
#5

pawn Код:
if(sscanf(params("s",option)) return SendClientMessage(playerid, 0xFF0000FF, "SYNTAX: /CREATE [House/Business/Faction]");
The first few lines should look like this:
pawn Код:
command(create, playerid, params[])
{
    new option[20];
    if(sscanf(params,"s",option)) return SendClientMessage(playerid, 0xFF0000FF, "SYNTAX: /CREATE [House/Business/Faction]");
    //Code continues...
NOTE: You will need the SSCANF2 include and plugin. It's not neccessary but it's recommended.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)