|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Aug 2009
Posts: 179
Reputation: 0
|
pawn Code:
If i do for example: (hello! It gives me this: Name_Name ( ( hello! ))Instead it should be like this: Name_Name ( hello! ))Wtf, where that extra "(" comes from? |
|
|
|
|
#2 |
|
Little Clucker
![]() Join Date: Aug 2007
Posts: 38
Reputation: 0
|
I'm no scripter, but isn't it just taking the entire input and placing it within the (( )) in the string?
The entire input being "(hello" would mean the "(" got put inside also, no? |
|
|
|
|
#3 | |
|
Big Clucker
![]() ![]() Join Date: Aug 2009
Posts: 179
Reputation: 0
|
Quote:
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2007
Posts: 2,769
Reputation: 324
|
You should use text[1], instead of text at
format(string, sizeof(string), "%s ( %s ))", sendername, text);
|
|
|
|
|
#5 | |
|
Big Clucker
![]() ![]() Join Date: Aug 2009
Posts: 179
Reputation: 0
|
Quote:
Name_Name: (hello! |
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2010
Posts: 1,794
Reputation: 1
|
Try text[2]
And it does the ( because your getting the text from the player, And players text contains ( so thats why you see it, But yeah try text[2] |
|
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2008
Posts: 1,560
Reputation: 258
|
pawn Code:
|
|
|
|
|
#8 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2010
Posts: 1,794
Reputation: 1
|
Quote:
|
|
|
|
|
|
#9 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2008
Posts: 1,560
Reputation: 258
|
Quote:
Even in this line: if(text[0] == '(') Which is why it doesn't work. |
|
|
|
|
|
#10 | |
|
Big Clucker
![]() ![]() Join Date: Aug 2009
Posts: 179
Reputation: 0
|
Quote:
Name_Name: ( hello! |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What GTA character are you? | Guedes747 | Everything and Nothing | 65 | 22/05/2010 08:29 AM |
| Character Limit - Help me, sir! | Daniel_June | Help Archive | 13 | 27/01/2010 07:26 PM |
| Help with character spawn | stud4125 | Help Archive | 4 | 25/07/2009 09:55 PM |
| can`t see character | laser50 | Help Archive | 1 | 10/04/2009 10:23 PM |
| My first 3D character | Moustafa | Everything and Nothing | 0 | 23/03/2009 06:01 PM |