Üdv, valaki segíteni abban hogy ahogy én írtam működne e szóval chatba ékezetesen írná a karaktert így?
Alap
stock ClientPrintColor( id, String[ ], any:... )
{
new szMsg[ 192 ]
vformat( szMsg, charsmax( szMsg ), String, 3 )
replace_all( szMsg, charsmax( szMsg ), "!n", "^1" )
replace_all( szMsg, charsmax( szMsg ), "!t", "^3" )
replace_all( szMsg, charsmax( szMsg ), "!g", "^4" )
static msgSayText = 0
static fake_user
if( !msgSayText )
{
msgSayText = get_user_msgid( "SayText" )
fake_user = get_maxplayers( ) + 1
}
message_begin( id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, _, id )
write_byte( id ? id : fake_user )
write_string( szMsg )
message_end( )
}
Én általam szerkesztett:
stock ClientPrintColor( id, String[ ], any:... )
{
new szMsg[ 192 ]
vformat( szMsg, charsmax( szMsg ), String, 13 )
replace_all( szMsg, charsmax( szMsg ), "!n", "^1" )
replace_all( szMsg, charsmax( szMsg ), "!t", "^3" )
replace_all( szMsg, charsmax( szMsg ), "!g", "^4" )
replace_all( szMsg, charsmax( szMsg ), "á", "á")
replace_all( szMsg, charsmax( szMsg ), "é", "Ă©")
replace_all( szMsg, charsmax( szMsg ), "í", "Ă")
replace_all( szMsg, charsmax( szMsg ), "ó", "Ăł")
replace_all( szMsg, charsmax( szMsg ), "ö", "ö")
replace_all( szMsg, charsmax( szMsg ), "ő", "Ĺ‘")
replace_all( szMsg, charsmax( szMsg ), "ú", "Ăş")
replace_all( szMsg, charsmax( szMsg ), "ü", "ĂĽ")
replace_all( szMsg, charsmax( szMsg ), "ű", "ű")
replace_all( szMsg, charsmax( szMsg ), "Í", "ĂŤ")
static msgSayText = 0
static fake_user
if( !msgSayText )
{
msgSayText = get_user_msgid( "SayText" )
fake_user = get_maxplayers( ) + 1
}
message_begin( id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, _, id )
write_byte( id ? id : fake_user )
write_string( szMsg )
message_end( )
}