SSCANF Help
#8

i had, but not working, just make me confused

Quote:
Originally Posted by biker122
Посмотреть сообщение
You can use Float (f), can't you?
I hate that format bro. . .

Quote:
Originally Posted by HY
Посмотреть сообщение
pawn Код:
CMD:pay(playerid,params[])
{
    new id;
    new dollar;
    new string[128];
    new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params, "ii", id, dollar)) return SendClientMessage(playerid, -1, "USAGE: /Pay [ID] [Money]");
    GivePlayerMoney(id, dollar)
    format(string, sizeof(string), "You gave to %s money %i !", id, dollar);
    SendClientMessage(playerid, -1, string);
    format(string, sizeof(string), "You received  %i money from %s !", dollar, name);
    SendClientMessage(id, -1, string);
    return 1;
}
Reply


Messages In This Thread
SSCANF Help - by Raefal - 09.11.2014, 11:08
Re: SSCANF Help - by UltraScripter - 09.11.2014, 11:12
Re: SSCANF Help - by Raefal - 09.11.2014, 11:23
Re: SSCANF Help - by DavidBilla - 09.11.2014, 11:23
Re: SSCANF Help - by Raefal - 09.11.2014, 11:32
Re: SSCANF Help - by biker122 - 09.11.2014, 11:33
Re: SSCANF Help - by HY - 09.11.2014, 11:39
Re: SSCANF Help - by Raefal - 09.11.2014, 11:44
Re: SSCANF Help - by UltraScripter - 09.11.2014, 11:48
Re: SSCANF Help - by Raefal - 09.11.2014, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)