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
#2

replace:
Код:
public ongamemodeinit
with:
Код:
public OnGameModeInit
    {
Reply
#3

dude its already like that -.-
its just a problem with the score..
when some 1 from Team_B Kill Team_A Its Will Up 1001 Score.. :/
Reply
#4

plesae some 1 help mee i need so much help with this
Reply
#5

pawn Код:
public OnGameModeInit
{
      new str[128];

format(str,128,"Red Team - %d", ASc); ASc = TextDrawCreate(16.000000, 260.000000,str);
TextDrawFont(ASc, 3);
TextDrawLetterSize(ASc, 0.3, 3.5);
TextDrawColor(ASc, 0xff0000FF);
TextDrawSetOutline(ASc, false);
TextDrawSetProportional(ASc, true);
TextDrawSetShadow(ASc, 1);

format(str,128,"Blue Team - %d", BSc); BSc = TextDrawCreate(16.000000, 290.000000,str);
TextDrawFont(BSc, 3);
TextDrawLetterSize(BSc, 0.3, 3.5);
TextDrawColor(BSc, 0x00d9ffFF);
TextDrawSetOutline(BSc, false);
TextDrawSetProportional(BSc, true);
TextDrawSetShadow(BSc, 1);

return 1;
}
Reply
#6

its the same bro no?

i have problem with the textdraw score on onplayerdeath
please help me...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)