Shows as 49? - 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: Shows as 49? (
/showthread.php?tid=132081)
Shows as 49? -
Torran - 06.03.2010
Im testing the year bit of my server,
In the dialog i enter 1990 as a test year,
And it says ok so you were born in 49, why?
pawn Код:
format(string, sizeof(string), "Ok so you were born in %d", inputtext);
SendClientMessage(playerid, WHITE, string);
Re: Shows as 49? - WackoX - 06.03.2010
Use %s, not %d.
%d = Decimal (Number)
%s = String (Word)
And inputtext is a string, so..
Re: Shows as 49? -
Razvann - 06.03.2010
Solved.
Re: Shows as 49? -
MenaceX^ - 06.03.2010
Quote:
Originally Posted by WackoX
Use %s, not %d.
%d = Decimal (Number)
%s = String (Word)
And inputtext is a string, so..
|
But he needs a year and a year is numbers, numbers are integer.
Re: Shows as 49? -
Razvann - 06.03.2010
Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by WackoX
Use %s, not %d.
%d = Decimal (Number)
%s = String (Word)
And inputtext is a string, so..
|
But he needs a year and a year is numbers, numbers are integer.
|
I have with %s and it works. :d