% in game - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: % in game (
/showthread.php?tid=86139)
% in game -
UsaBoy91 - 11.07.2009
Hey guys. I don't like this bug :P
If i type in-game
% , it send me :
?
Is there any way to make it ?
Re: % in game -
tommy5933 - 12.07.2009
thats not a bug, thats normal
Re: % in game -
UsaBoy91 - 12.07.2009
lol , this isn't normal ... or this musn't be normal ;|
Re: % in game -
UsaBoy91 - 12.07.2009
i've tryed this under OnPlayerText , but no way
pawn Код:
for (new i = 0, j = strlen(text); i < j; i++)
if(strfind(text[i],"%",true) != -1) text[i] = '‰';
Re: % in game -
BMUK - 12.07.2009
Im sure you cannot send the % symbol to clients chat. You can use %% in some textdraws to make a % though
Re: % in game -
ledzep - 12.07.2009
I read somewhere that it is not allowed because players could mess up existing placeholders in functions such as format(...).
"ledzep: %d lulz eat my placeholders %f-%f-%f*** you"
Re: % in game -
UsaBoy91 - 12.07.2009
ok , but if i want to change the " ? " to "‰" ?
Re: % in game -
Burridge - 12.07.2009
Type "Percent"?
Re: % in game -
UsaBoy91 - 12.07.2009
eh ... + 1
% in game -
[NoV]LaZ - 12.07.2009
Quote:
Originally Posted by Master2k8
I would class this as a bug.
|
Read again:
Quote:
Originally Posted by ledzep
I read somewhere that it is not allowed because players could mess up existing placeholders in functions such as format(...).
"ledzep: %d lulz eat my placeholders %f-%f-%f*** you"
|
The '%' symbol was removed to prevent exploits with format strings in pawn.
________
Medical marijuana dispensary