%s on 3D Text Labels? - 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: %s on 3D Text Labels? (
/showthread.php?tid=218251)
%s on 3D Text Labels? -
Zack9764 - 29.01.2011
I'm making a function so when they type it, it makes a text label with what they want it to say right where they are. How can I do this?
Re: %s on 3D Text Labels? -
Biesmen - 29.01.2011
%s on 3D Text Labels:
pawn Код:
new string[128];
format(string, sizeof(string), "%s", WhatTheySaid[playerid]); // Define WhatTheySaid[playerid] to what you want.
Create3DTextLabel(string, etc...)
That's how to do it.
So, use format to do that.
Re: %s on 3D Text Labels? -
Hal - 29.01.2011
https://sampwiki.blast.hk/wiki/Format
But remember %s is for strings, you will have to use different ones for different types as show on the wiki page, and below (copied from the wiki)
Quote:
Originally Posted by WIKI
Placeholder Meaning
%b Inserts a number at this position in binary radix
%c Inserts a single character.
%d Inserts an integer (whole) number
%f Inserts a floating point number.
%i Inserts an integer.
%s Inserts a string.
%x Inserts a number in hexadecimal notation.
%% Inserts the literal '%'
|