I need help on Variables - 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: I need help on Variables (
/showthread.php?tid=97972)
I need help on Variables -
virspector - 18.09.2009
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!
Re: I need help on Variables -
[HiC]TheKiller - 18.09.2009
pawn Код:
new string[50];
format(string, sizeof(string), "Your clan ID is %s", vID);
SendClientMessage(playerid, COLOR_SYSTEM, string);
Re: I need help on Variables - Zeex - 18.09.2009
[HiC]TheKiller,
http://forum.sa-mp.com/index.php?topic=78026.0
Re: I need help on Variables -
[HiC]TheKiller - 18.09.2009
Quote:
Originally Posted by ZeeX
|
It is a example, I normally use 128 or lower
.
Re: I need help on Variables -
virspector - 18.09.2009
K, Thx, but how about this one:
new vName;
SendClientMessage(playerid, COLOR_SYSTEM, "Your clan name is <vName>");
Re: I need help on Variables -
Sznupek - 18.09.2009
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