Jump to content
  • 0

pomoc Help TextDraw v jazykoch


Mischino19

Dotaz

cfte mam takto stock

 

stock TextDrawCreateL( Float:x, Float:y, textsk[], textcz[], texten[], textpl[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
switch(Jazyk[i])
{
case 1: TextDrawCreate( Float:x, Float:y, textsk);
case 2: TextDrawCreate( Float:x, Float:y, textcz);
case 3: TextDrawCreate( Float:x, Float:y, texten);
case 4: TextDrawCreate( Float:x, Float:y, textpl);
}
}
return 1;
}

 

a textdraw mam takto

 

	Textdraw11 = TextDrawCreateL(5.000000, 130.000000, "Pomoc","Pomoc","Help","Pomoc");
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 1);
TextDrawLetterSize(Textdraw11, 0.550000, 1.200000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 1);
TextDrawSetProportional(Textdraw11, 1);
TextDrawUseBox(Textdraw11, 1);
TextDrawBoxColor(Textdraw11, -1);
TextDrawTextSize(Textdraw11, 183.000000, 0.000000);

 

a pise mi error

 

(12636) : warning 213: tag mismatch

 

v riadku

Textdraw11 = TextDrawCreateL(5.000000, 130.000000, "Slovensky","Cesky","Anglicky","Polski");

 

vela sposobov som skusal no ani jeden mi nevisiel pls ako sa to da opravit

Link to comment
Share on other sites

11 odpovědí na tuto otázku

Recommended Posts

  • 0

odkedy case začína od 1 ?

 

stock TextDrawCreateL( Float:x, Float:y, textsk[], textcz[], texten[], textpl[])

{

for(new i = 0; i < MAX_PLAYERS; i++)

{

switch(Jazyk)

{

case 0: TextDrawCreate( Float:x, Float:y, textsk);

case 1: TextDrawCreate( Float:x, Float:y, textcz);

case 2: TextDrawCreate( Float:x, Float:y, texten);

case 3: TextDrawCreate( Float:x, Float:y, textpl);

}

}

//načo return ?

}

skús to takto

Link to comment
Share on other sites

  • 0
odkedy case začína od 1 ?

 

stock TextDrawCreateL( Float:x, Float:y, textsk[], textcz[], texten[], textpl[])

{

for(new i = 0; i < MAX_PLAYERS; i++)

{

switch(Jazyk)

{

case 0: TextDrawCreate( Float:x, Float:y, textsk);

case 1: TextDrawCreate( Float:x, Float:y, textcz);

case 2: TextDrawCreate( Float:x, Float:y, texten);

case 3: TextDrawCreate( Float:x, Float:y, textpl);

}

}

//načo return ?

}

skús to takto

 

 

case mam aj v SCMTAL ako SendCLientMessageToAll a funguje :d a tak isto aj v GameTextForPlayer mi case zacina od 1 a funguje...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...