Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Show the whole command/function.
Posts: 715
Threads: 47
Joined: Mar 2011
Reputation:
0
that is it, i want when you say "$ply" under onplayertext, it will format "$ply" to the closest players name. and id etc.
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
new Text[10]; ? Not sure if Text is indexed'
Posts: 6,129
Threads: 36
Joined: Jan 2009
Strings aren't declared by '$,' this isn't PHP or PERL or any other languages that retain a similar syntax.
From what I understand, you have already formatted a string called 'ply' - am I right so far? Be more specific.
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
That's what i was wondering calg00ne, as i stated above, im not sure if Text, Or anything is indexed.
Posts: 715
Threads: 47
Joined: Mar 2011
Reputation:
0
i said under onplayertext
lemme try to explain better
Donya Types: "Hello $ply"
Output - Donya Says: "Hello Calg00ne"
(i will see myself type Hello $ply, but, it will send Hello Calg00ne to everyone else.)
because Calg00ne is the closest player to me, it formats $ply to The closest player to me.
the text parameter i posted above is being used in OnPlayerText(playerid, text[]);
Sorry if i used your name Calg00ne, i just needed an example
so basically, im trying to find all "$ply"'s in a text, and format them all to the closest player. I hope i explained fairly well now.