23.06.2010, 17:05
https://sampwiki.blast.hk/wiki/Control_Structures#.3F:
I think that works, I barely use it, but that's how.
Means
Ofcourse that there won't work, but format needs a string to be fed to '%s' and you can always use:
It does not need a varible/array or anything.
pawn Код:
new guide = dini_Int(file, "HasGuide");
format(string2, sizeof(string2), "Guide: [%s] Driving License: [%s] Sailing License: [%s] Flying License: [%s] Weapon License: [%s]", (guide == 1) ? ("Yes") : ("No"), dlic);
pawn Код:
(guide == 1) ? ("Yes") : ("No")
pawn Код:
if(guide == 1)
{
"yes"
}
else
{
"no"
}
pawn Код:
format(str, sizeof(str), "%s", "Hello! :D");