%s on 3D Text Labels?
#1

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?
Reply
#2

%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.
Reply
#3

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 '%'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)