Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
How can i define That If An Player Types the text $location anywhere middle of his message it should tell the players location
example a player is at city hall he uses
"I am at $location" it should replace the "$location" with the place he is i got the the names of location just tell me how to do something like that
Posts: 294
Threads: 72
Joined: Feb 2012
Reputation:
0
I think this can be done with multiple coordinates,and many many cases.
Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
man i got every thing just don't know how to get the $loc form anywhere in players text
Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
i am not getting it i have an variable location that defines players location show how can i replace the text $location with the variable can u give me an example pawn code ??
Posts: 260
Threads: 4
Joined: Jun 2013
Reputation:
0
That code will only see if the first character of the player's text is a "$".
And making codes like that is hard for newbies like me and you. It's complicated. You must first somehow find in which location in the string you find the $location, delete that and replace it using strins.
P.S: Just asking out of curiousity, are you a player of a server called r-fs?
Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
no what is r-fs ?? and can some one tell how to work with strins i am not getting it on wiki