Hallo Liebe Community,
Momentan Scripte ich an meinen Script ich wollte gerne eine Statistik box einfügen , habe ich auch getahn ..
Das ist das was ich alles eingefügt habe
//======== Text-Draw============//
new Text:Statistik0[MAX_PLAYERS];
new Text:Statistik1[MAX_PLAYERS];
new Text:Statistik2[MAX_PLAYERS];
new Text:Statistik3[MAX_PLAYERS];
new Text:Statistik4[MAX_PLAYERS];
new Text:Statistik5[MAX_PLAYERS];
//new StatsTDON[MAX_PLAYERS];
//==============================
Function Timer2()
{
for(new i=0; i<SLOTS; i++)//
//{
// if(StatsTDON[i] == 0)
{
TextDrawShowForPlayer(i,Statistik0[i]);
TextDrawShowForPlayer(i,Statistik1[i]);
TextDrawShowForPlayer(i,Statistik2[i]);
TextDrawShowForPlayer(i,Statistik3[i]);
TextDrawShowForPlayer(i,Statistik4[i]);
TextDrawShowForPlayer(i,Statistik5[i]);
StatsTDON[i] = 1; }
//STatistik
new jtext[100];
if(PlayerInfo[i][pJob] == 1) { jtext = "Detektiv"; }
/*else if(PlayerInfo[i][pJob] == 2) { jtext = "Anwalt"; } else if(PlayerInfo[i][pJob] == 3) { jtext = "Gaertner"; } else if(PlayerInfo[i][pJob] == 4) { jtext = "Drogendealer"; } else if(PlayerInfo[i][pJob] == 5) { jtext = "JOB5FREI"; } else if(PlayerInfo[i][pJob] == 6) { jtext = "Farmer"; } else if(PlayerInfo[i][pJob] == 7) { jtext = "Fischer"; } else if(PlayerInfo[i][pJob] == 8) { jtext = "JOB9FREI"; } else if(PlayerInfo[i][pJob] == 9) { jtext = "Waffendealer"; } else if(PlayerInfo[i][pJob] == 10) { jtext = "JOB10FREI"; } else if(PlayerInfo[i][pJob] == 12) { jtext = "JOB12FREI"; } else if(PlayerInfo[i][pJob] == 14) { jtext = "Busfahrer"; } else if(PlayerInfo[i][pJob] == 15) { jtext = "JOB15FREI"; } else if(PlayerInfo[i][pJob] == 16) { jtext = "Pilot"; } else if(PlayerInfo[i][pJob] == 17) { jtext = "Müllmann"; } else if(PlayerInfo[i][pJob] == 18) { jtext = "Schmuggler"; } else if(PlayerInfo[i][pJob] == 19) { jtext = "JOB19FREI"; }*/ new levelstr[50],bankstr[70],paystr[70],handystr[70],jobstr[70];
format(levelstr, sizeof(levelstr),"~b~Level: ~w~%d",PlayerInfo[i][pLevel]); TextDrawSetString(Statistik1[i], levelstr);
format(bankstr, sizeof(bankstr),"~y~Bank: ~w~$%d",PlayerInfo[i][pAccount]); TextDrawSetString(Statistik2[i], bankstr);
format(paystr, sizeof(paystr),"~y~Payday: ~w~in %d Minuten",60-PlayerInfo[i][pPlayMinutes]); TextDrawSetString(Statistik3[i], paystr);
format(handystr, sizeof(handystr),"~y~Handynr.: ~w~%d",PlayerInfo[i][pPnumber]); TextDrawSetString(Statistik4[i], handystr);
format(jobstr, sizeof(jobstr),"~y~Beruf: ~w~%s",jtext); TextDrawSetString(Statistik5[i], jobstr);
}
[i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][size=10]
//------------------------------- TEXTDRAWS ----------------------------------------
Statistik0 = TextDrawCreate(533.000000, 135.000000, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~");
TextDrawBackgroundColor(Statistik0, 255);
TextDrawFont(Statistik0, 1);
TextDrawLetterSize(Statistik0, 0.300000, 1.000000);
TextDrawColor(Statistik0, -1);
TextDrawSetOutline(Statistik0, 0);
TextDrawSetProportional(Statistik0, 1);
TextDrawSetShadow(Statistik0, 1);
TextDrawUseBox(Statistik0, 1);
TextDrawBoxColor(Statistik0, 102);
TextDrawTextSize(Statistik0, 640.000000, 0.000000);
Statistik1 = TextDrawCreate(533.000000, 135.000000, " ");
TextDrawBackgroundColor(Statistik1, 255);
TextDrawFont(Statistik1, 1);
TextDrawLetterSize(Statistik1, 0.270000, 1.000000);
TextDrawColor(Statistik1, -1);
TextDrawSetOutline(Statistik1, 0);
TextDrawSetProportional(Statistik1, 1);
TextDrawSetShadow(Statistik1, 1);
Statistik2 = TextDrawCreate(533.000000, 150.000000, " ");
TextDrawBackgroundColor(Statistik2, 255);
TextDrawFont(Statistik2, 1);
TextDrawLetterSize(Statistik2, 0.270000, 1.000000);
TextDrawColor(Statistik2, -1);
TextDrawSetOutline(Statistik2, 0);
TextDrawSetProportional(Statistik2, 1);
TextDrawSetShadow(Statistik2, 1);
Statistik3 = TextDrawCreate(533.000000, 165.000000, " ");
TextDrawBackgroundColor(Statistik3, 255);
TextDrawFont(Statistik3, 1);
TextDrawLetterSize(Statistik3, 0.270000, 1.000000);
TextDrawColor(Statistik3, -1);
TextDrawSetOutline(Statistik3, 0);
TextDrawSetProportional(Statistik3, 1);
TextDrawSetShadow(Statistik3, 1);
Statistik4 = TextDrawCreate(533.000000, 179.000000, " ");
TextDrawBackgroundColor(Statistik4, 255);
TextDrawFont(Statistik4, 1);
TextDrawLetterSize(Statistik4, 0.270000, 1.000000);
TextDrawColor(Statistik4, -1);
TextDrawSetOutline(Statistik4, 0);
TextDrawSetProportional(Statistik4, 1);
TextDrawSetShadow(Statistik4, 1);
Statistik5 = TextDrawCreate(533.000000, 194.000000, " ");
TextDrawBackgroundColor(Statistik5, 255);
TextDrawFont(Statistik5, 1);
TextDrawLetterSize(Statistik5, 0.270000, 1.000000);
TextDrawColor(Statistik5, -1);
TextDrawSetOutline(Statistik5, 0);
TextDrawSetProportional(Statistik5, 1);
TextDrawSetShadow(Statistik5, 1);
C:\Users\Felix\Desktop\German Edit bei FeLiX\Server\gamemodes\FlytoLife.pwn(5041) : error 017: undefined symbol "StatsTDON"
C:\Users\Felix\Desktop\German Edit bei FeLiX\Server\gamemodes\FlytoLife.pwn(5041) : warning 215: expression has no effect
C:\Users\Felix\Desktop\German Edit bei FeLiX\Server\gamemodes\FlytoLife.pwn(5041) : error 001: expected token: ";", but found "]"
C:\Users\Felix\Desktop\German Edit bei FeLiX\Server\gamemodes\FlytoLife.pwn(5041) : error 029: invalid expression, assumed zero
C:\Users\Felix\Desktop\German Edit bei FeLiX\Server\gamemodes\FlytoLife.pwn(5041) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Danke im Vorraus