format text
#1

PHP код:
format(stringsizeof(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.
Reply
#2

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);
Reply
#3

are you sure about that...
PHP код:
error 001expected token"-string end-"but found "-identifier-"
error 029invalid expressionassumed zero
error 029
invalid expressionassumed zero
fatal error 107
too many error messages on one line 
Edit:
PHP код:
format(stringsizeof(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.
Reply
#4

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)