Text in a variable? - 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)
+--- Thread: Text in a variable? (
/showthread.php?tid=378281)
Text in a variable? -
TaLhA XIV - 17.09.2012
Hello,
I never tested it but can some one tell me how can we store text in a variable?Like I want to make a ****system and when a player types a command,he can see the text a person sent him.I am really confused.
ThAnKs!
Re: Text in a variable? -
Dolby - 17.09.2012
pawn Код:
new Variable[128];
format(Variable,128,"%s","TEXT");
?
Re: Text in a variable? -
TaLhA XIV - 17.09.2012
I want to make it like a player uses a cmd to send a text,then thee text is stored in a variable.Then the target player types a cmd and he recieves the text.That would be done by
Re: Text in a variable? -
Jack_Leslie - 17.09.2012
pawn Код:
new string[126],
textVariable[126];
format(string, sizeof(string), "%s", params);
strmid(textVariable, params, 0, strlen(params), 255);
?
Re: Text in a variable? -
TaLhA XIV - 17.09.2012
Hmm..ThAnKs!Not tried it but I think I needed exactly this thing.But how would I send it to a player?How would I do it like the target player get's a notification that you have a message and he types a cmd and he get's the message?No full codes just a explanation or some small codes.
Re: Text in a variable? -
TaLhA XIV - 17.09.2012
Anyone?
Re: Text in a variable? -
TaLhA XIV - 18.09.2012
SomeOne?
Please.