Inserting '%' into the string
#10

It won't work you can send the percent symbol in a client message test this.

#include <a_samp>
#include <zcmd>

pawn Код:
CMD:testpercent(playerid, arg[])
{
    new line[128];
    format(line, sizeof(line), "You get 10%% off!");
    SendClientMessage(playerid, -1, line);
    print(line);
   
    format(line, sizeof(line), "You get 10%c off!", 37);
    SendClientMessage(playerid, -1, line);
    print(line);

    return 1;
}
Prints in game:

You get off!
You get off!

(Better believe I get off)

The print however is this

[16:01:54] You get %10 off!
[16:01:54] You get %10 off!
Reply


Messages In This Thread
Inserting '%' into the string - by dominik523 - 19.11.2013, 18:56
Re: Inserting '%' into the string - by Ayham - 19.11.2013, 18:57
Re: Inserting '%' into the string - by Pottus - 19.11.2013, 18:58
AW: Inserting '%' into the string - by Skimmer - 19.11.2013, 18:58
Re: Inserting '%' into the string - by PrivatioBoni - 19.11.2013, 18:58
Re: Inserting '%' into the string - by dominik523 - 19.11.2013, 19:00
Re: Inserting '%' into the string - by Macluawn - 19.11.2013, 19:01
Re: Inserting '%' into the string - by Konstantinos - 19.11.2013, 19:04
Re: Inserting '%' into the string - by dominik523 - 19.11.2013, 19:04
Re: Inserting '%' into the string - by Pottus - 19.11.2013, 20:01

Forum Jump:


Users browsing this thread: 1 Guest(s)