How to make a advertise command
#4

Use sscanf and zcmd xD

pawn Code:
CMD:advertise( playerid, params[ ] )
{
    new string[ 128 ], pName[ MAX_PLAYER_NAME ];
    GetPlayerName(playerid, pName, sizeof(pName));
    new item[ 66 ], Price, PH;
    if(sscanf(params, "s[65]dd",item, Price, PH)) return SendClientMessage(playerid, -1, "Usage: /advertise [Item] [Price] [Phone Number]");
    format(string, sizeof(string), "Selling %s for %d$  (Phone Number: %d) %s", item, Price, PH, pName);
    SendClientMessageToAll(-1,string);
    return 1;
}
Reply


Messages In This Thread
How to make a advertise command - by Matej_ - 31.01.2011, 12:08
Re: How to make a advertise command - by Rock18 - 31.01.2011, 12:29
Re: How to make a advertise command - by THE_KNOWN - 31.01.2011, 12:31
Re: How to make a advertise command - by HyperZ - 31.01.2011, 12:32
Re: How to make a advertise command - by Matej_ - 31.01.2011, 13:52
Re: How to make a advertise command - by [03]Garsino - 31.01.2011, 13:54
Re: How to make a advertise command - by THE_KNOWN - 31.01.2011, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)