I need help on Variables
#1

Hey Guys, i need a help.

I got a variable. These are the variables

vID
vClan

And i want to put SendClientMessage like this:

SendClientMessage(playerid, COLOR_SYSTEM, "Your clan ID is <vID>");
SendClientMessage(playerid, COLOR_SYSTEM, "Your clan name is <vClan>");

No, these just an example about what i need. Cuz i need something like this sooooo much! Please help. Thx!
Reply
#2

pawn Код:
new string[50];
format(string, sizeof(string), "Your clan ID is %s", vID);
SendClientMessage(playerid, COLOR_SYSTEM, string);
Reply
#3

[HiC]TheKiller, http://forum.sa-mp.com/index.php?topic=78026.0
Reply
#4

Quote:
Originally Posted by ZeeX
It is a example, I normally use 128 or lower .
Reply
#5

K, Thx, but how about this one:

new vName;
SendClientMessage(playerid, COLOR_SYSTEM, "Your clan name is <vName>");
Reply
#6

Hm, read about format, for example here
In this case, you need:

pawn Код:
new String[128];
format(String, sizeof(String), "Your clan name is %s", vName);
SendClientMessage(playerid, COLOR_SYSTEM, String);
Value of 128 in String is exemplary, you can use other one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)