Scripting with format or without format?
#1

Hi

I now using format for all formatting text.
But i now saw i can script without format function.

So which is the faster/better choice?

This (example):
Quote:

SendClientMessage(playerid, COLOR_WHITE, "Your ID is " playerid);

Or:
Quote:

format(text, sizeof(text), "Your ID is %d", playerid);
SendClientMessage(playerid, COLOR_WHITE, text);

?

Thanx for the replys
Reply
#2

Код:
SendClientMessage(playerid, COLOR_WHITE, "Your ID is " playerid);
This won't work. You will have to use format
Reply
#3

Possible.
See: https://sampforum.blast.hk/showthread.php?tid=57018&p=550206

Just use
pawn Код:
CPF(playerid, COLOR_WHITE, "Your ID is %d", playerid);
Reply
#4

I saw here: http://freshdoublex.pastebin.com/9LiSRYkv
Line 32
Reply
#5

Change all for
pawn Код:
SendRconCommand(Hostname1);
,
pawn Код:
SendRconCommand(Hostname2);
and
pawn Код:
SendRconCommand(Hostname3);
.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)