05.02.2011, 00:30
Ok, so I have two long lines in player stat showing, and I'm using strcat. But, I see only 1/2 dialog :SS
And I see only this:
But not with
help :/
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new
Teises[ 7 ]
;
if( GetPVarInt( playerid, "VairavimoTeises" ) == 1 ) Teises = "Turi";
else Teises = "Neturi";
new
Telefonas[ 7 ]
;
if( GetPVarInt( playerid, "tNumeris" ) != 0 ) Telefonas = "Turi";
else Telefonas = "Neturi";
new
Masina[ 7 ]
;
if( GetPVarInt( playerid, "Masina" ) != 0 ) Masina = "Turi";
else Masina = "Neturi";
new
Darbas[ 27 ]
;
if( GetPVarInt( playerid, "Specialybe" ) == 1 ) Darbas = "Policijos Departamentas";
else if( GetPVarInt( playerid, "Specialybe" ) == 2 ) Darbas = "Medicinos Departamentas";
else if( GetPVarInt( playerid, "Specialybe" ) == 3 ) Darbas = "Taksistas";
else if( GetPVarInt( playerid, "Specialybe" ) == 4 ) Darbas = "Dizaineris";
else if( GetPVarInt( playerid, "Specialybe" ) == 5 ) Darbas = "Maisto prekiш iрveюiotojas";
else if( GetPVarInt( playerid, "Specialybe" ) == 2 ) Darbas = "Picш iрveюiotjoas";
else if( GetPVarInt( playerid, "Specialybe" ) == 2 ) Darbas = "Keliш valytojas";
new
Direktorius[ 23 ]
;
if( GetPVarInt( playerid, "Direktorius" ) == 1 ) Direktorius = "Policijos Departamento";
else if( GetPVarInt( playerid, "Direktorius" ) == 2 ) Direktorius = "Medicinos Departamento";
else if( GetPVarInt( playerid, "Direktorius" ) == 3 ) Direktorius = "Taksi firmos";
else if( GetPVarInt( playerid, "Direktorius" ) == 4 ) Direktorius = "Dizaineriш";
new
Stringas[ 422 ][ 2 ]
;
format( Stringas[ 0 ], 422, ""#h_Zalia"Vardas: "#h_Raudona"%s\n"#h_Zalia"Юaidлjo ID: "#h_Raudona"%d\n"#h_Zalia"Pinigai: %d\n"#h_Zalia"Pinigai banke: "#h_Raudona"%d\n"#h_Zalia"Ieрkomumo lygis: "#h_Raudona"%d\n"#h_Zalia"Laikas kalлjime: "#h_Raudona"%d minuиiш\n"#h_Zalia"Laikas iki atitildymo: "#h_Raudona"%d minuиiш\n"#h_Zalia"Vairavimo teisлs: "#h_Raudona"%s\n", ZaidejoVardas( clickedplayerid ),
clickedplayerid, GetPlayerMoneyEx( playerid ), GetPVarInt( playerid, "Pinigai.Banke" ), GetPlayerWantedLevel( playerid ),
GetPVarInt( playerid, "Kalejimo.Laikas" ), GetPVarInt( playerid, "Uztildytas" ), Teises );
strcat( Stringas[ 1 ], Stringas[ 0 ], 422 );
format( Stringas[ 0 ], 314, ""#h_Zalia"Mobilusis telefonas: "#h_Raudona"%s\n"#h_Zalia"Administratoriaus lygis: "#h_Raudona"%d\n"#h_Zalia"Darbo бspлjimш: "#h_Raudona"%d\n"#h_Zalia"Maрina: "#h_Raudona"%s\n"#h_Zalia"Darbas: "#h_Raudona"%s\n"#h_Zalia"Direktorius: "#h_Raudona"%s", Telefonas, GetPVarInt( playerid, "Administratorius" ), GetPVarInt( playerid, "DarboIspejimai" ), Masina, Darbas, Direktorius );
ShowPlayerDialog( playerid, 48, DIALOG_STYLE_MSGBOX, ""#h_Balta"Юaidлjo informacija.", Stringas[ 0 ], "Uюdaryti", "" );
return 1;
}
pawn Код:
format( Stringas[ 0 ], 314, ""#h_Zalia"Mobilusis telefonas: "#h_Raudona"%s\n"#h_Zalia"Administratoriaus lygis: "#h_Raudona"%d\n"#h_Zalia"Darbo бspлjimш: "#h_Raudona"%d\n"#h_Zalia"Maрina: "#h_Raudona"%s\n"#h_Zalia"Darbas: "#h_Raudona"%s\n"#h_Zalia"Direktorius: "#h_Raudona"%s", Telefonas, GetPVarInt( playerid, "Administratorius" ), GetPVarInt( playerid, "DarboIspejimai" ), Masina, Darbas, Direktorius );
pawn Код:
format( Stringas[ 0 ], 422, ""#h_Zalia"Vardas: "#h_Raudona"%s\n"#h_Zalia"Юaidлjo ID: "#h_Raudona"%d\n"#h_Zalia"Pinigai: %d\n"#h_Zalia"Pinigai banke: "#h_Raudona"%d\n"#h_Zalia"Ieрkomumo lygis: "#h_Raudona"%d\n"#h_Zalia"Laikas kalлjime: "#h_Raudona"%d minuиiш\n"#h_Zalia"Laikas iki atitildymo: "#h_Raudona"%d minuиiш\n"#h_Zalia"Vairavimo teisлs: "#h_Raudona"%s\n", ZaidejoVardas( clickedplayerid ),
clickedplayerid, GetPlayerMoneyEx( playerid ), GetPVarInt( playerid, "Pinigai.Banke" ), GetPlayerWantedLevel( playerid ),
GetPVarInt( playerid, "Kalejimo.Laikas" ), GetPVarInt( playerid, "Uztildytas" ), Teises );