format text - 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)
+--- Thread: format text (
/showthread.php?tid=340722)
format text -
Night Dreamer - 08.05.2012
PHP код:
format(string, sizeof(string), ((intSpeed < 159) ? "~w~ %d ~g~~h~km/h~w~." : "~r~ %d ~w~~g~~h~km/h~w~."), intSpeed);
: error 001: expected token: "-string end-", but found "-identifier-"
I refuse to use 2 format.
Re: format text -
HDFord - 08.05.2012
You need to have the ()'s on the right place. I think.
This might work i don't really know but play a little around with the ()'s and see.
pawn Код:
format(string, sizeof(string), ((intSpeed < 159)) ? "~w~ %d ~g~~h~km/h~w~." : "~r~ %d ~w~~g~~h~km/h~w~.")), intSpeed);
Re: format text -
Night Dreamer - 08.05.2012
are you sure about that...
PHP код:
error 001: expected token: "-string end-", but found "-identifier-"
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Edit:
PHP код:
format(string, sizeof(string), (intSpeed < 159) ? ("~w~ %d ~g~~h~km/h~w~.") : ("~r~ %d ~w~~g~~h~km/h~w~."), intSpeed);
One of my best friends "bogdyutzu" solve my problems, tnx any way.
Re: format text -
[D]ry[D]esert - 08.05.2012
i think it should be like that
Код:
format(string, sizeof(string), ((intSpeed < 159) ? "~w~ %d ~g~~h~km/h~w~." : "~r~ %d ~w~~g~~h~km/h~w~.")), intSpeed);