What The Problem With This Textdraw?
#1

Hello..
i Did a TextDraw Score For TDM..
But , When i Kill Some 1 In The TDM , The Score Of The 2 Teams Up 2 1001/1002.. :/
i Will Tell Now All of The Code's

ASc = Team A Score
BSc = Team B Score
OK?
TextDraw Is : new Text:ASc; + new Text:BSc;

Ok ,
This is The CodePHP Of the TextDraw On GameModeInit
PHP код:
public OnGameModeInit
  
new str[128];
format(str,128,"Red Team - %d"ASc); ASc TextDrawCreate(16.000000260.000000,str);
TextDrawFont(ASc3);
TextDrawLetterSize(ASc0.33.5);
TextDrawColor(ASc0xff0000FF);
TextDrawSetOutline(AScfalse);
TextDrawSetProportional(ASctrue);
TextDrawSetShadow(ASc1);
format(str,128,"Blue Team - %d"BSc); BSc TextDrawCreate(16.000000290.000000,str);
TextDrawFont(BSc3);
TextDrawLetterSize(BSc0.33.5);
TextDrawColor(BSc0x00d9ffFF);
TextDrawSetOutline(BScfalse);
TextDrawSetProportional(BSctrue);
TextDrawSetShadow(BSc1); 
OnPlayerDeath Score's..

PHP код:
public OnPlayerDeath(playeridkilleridreason)
new 
str[128];
format(str,128,"Red Team - %d",ASc);
TextDrawSetString(ASc,str);
TextDrawShowForAll(ASc);
format(str,128,"Blue Team - %d",BSc);
TextDrawSetString(BSc,str);
TextDrawShowForAll(Text:BSc);
if(
Team_A[playerid] & Team_A[killerid])
{
SendClientMessageToAll(0xFF0000FF,"чбецд а' тщъд ийн чйм млп йшгд мдн рчегд");
if(
ASc == 0)
{
ASc 1;
}
return 
ASc--,format(str,sizeof(str),"TextDrawShowForAll(Text:ASc)""TextDrawSetString(Text:ASc,string[15])""TextDrawShowForAll(Text:ASc)");
if(
Team_B[playerid] & Team_B[killerid])
{
SendClientMessageToAll(0xFF0000FF,"чбецд б' тщъд ийн чйм млп йшгд мдн рчегд");
if(
BSc == 0)
BSc 1;
}
return 
BSc--,format(str,sizeof(str),"TextDrawShowForAll(Text:BSc)""TextDrawSetString(Text:BSc,string[15])""TextDrawShowForAll(Text:BSc)");
}
if(
Team_A[killerid] & Team_B[playerid])
{
return 
ASc++,format(str,sizeof(str),"TextDrawShowForAll(Text:ASc)""TextDrawSetString(Text:ASc,string[15])""TextDrawShowForAll(Text:ASc)");
}
if(
Team_B[killerid] & Team_A[playerid])
{
return 
BSc++,format(str,sizeof(str),"TextDrawShowForAll(Text:BSc)""TextDrawSetString(Text:BSc, string[15])""TextDrawShowForAll(Text:BSc)");
}
return 
1;

Please Help Me ;/
Reply


Messages In This Thread
What The Problem With This Textdraw? - by kesem140599 - 07.10.2012, 08:09
Re: What The Problem With This Textdraw? - by xplor09edy - 07.10.2012, 08:14
Re: What The Problem With This Textdraw? - by kesem140599 - 07.10.2012, 08:33
Re: What The Problem With This Textdraw? - by kesem140599 - 07.10.2012, 10:14
Re: What The Problem With This Textdraw? - by M3mPHi$_S3 - 07.10.2012, 10:16
Re: What The Problem With This Textdraw? - by kesem140599 - 07.10.2012, 10:20

Forum Jump:


Users browsing this thread: 1 Guest(s)