SA-MP Forums Archive
What is wrong with this string? - 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: What is wrong with this string? (/showthread.php?tid=300013)



What is wrong with this string? - thimo - 28.11.2011

Ok so im stuttering all day with this stupid string so i got this:
pawn Код:
format(RouteText, 255, TXT_Paramedic, Load, StartLoc, EndLoc);
And the file with the text:
pawn Код:
#define TXT_Paramedic "~w~Get the ~b~%s~w~ from ~r~%s to ~w~%s~w~"
But the problem is it keeps giving the old string wich was called TXT_HaulingCargoFromToDeliver
Код:
#define TXT_HaulingCargoFromToDeliver "~w~Hauling ~b~%s~w~ from %s to ~r~%s~w~"
But i want it to show the paramedic thing what is wrong? i dont understand!


Re: What is wrong with this string? - Henkie - 28.11.2011

pawn Код:
new string[128];
format(string, sizeof string, "Get the %s from %s to %s", Load, StartLoc, EndLoc);
I would use something like this. You can add colors with {color}.
I am not sure if this is working for you, because I only see a very small part of your script. So it's hard to find out what you exactly want.


Re: What is wrong with this string? - Kar - 28.11.2011

you changed RouteText at the wrong place.. find it somewhere else