13.11.2010, 03:08
I know this has to (hopefully..at least) be an easy fix.
I have my scoreboard all set up so everything compiles perfect.
The only issue is that I can't get it to actually APPEAR on screen.
Something tells me it has to do with the string..thing >_>' I never
really understand those, I keep reading the wiki, but I couldn't figure
it out.
Anyways, here's the code of the string, n' stuffs.
<_< The (Text:Textdraw2,tmpstr);
I feel like that might become a problem later, but lets focus on the whole "making it appear on the screen" deal.
Thank you. ^^
I have my scoreboard all set up so everything compiles perfect.
The only issue is that I can't get it to actually APPEAR on screen.
Something tells me it has to do with the string..thing >_>' I never
really understand those, I keep reading the wiki, but I couldn't figure
it out.
Anyways, here's the code of the string, n' stuffs.
Код:
public OnPlayerDeath(playerid,killerid,reason) { if(gTeam[playerid]==TEAM_SURVIVORS) { if(gTeam[playerid]==TEAM_SURVIVORS)GroveScore--; //otherwise punishment else BallasScore++; }else{ if(gTeam[playerid]==TEAM_ZOMBIES)BallasScore--; //otherwise punishment else GroveScore++; } new tmpstr[50]; //Accommodate for string size format(tmpstr,sizeof(tmpstr),"Grove: %d Ballas:%d",GroveScore,BallasScore); TextDrawSetString(Text:Textdraw2,tmpstr); return 1; }
I feel like that might become a problem later, but lets focus on the whole "making it appear on the screen" deal.
Thank you. ^^