08.03.2013, 08:18
hey everyone . any one knows whats the matter? i get tag mismatch error for every line of this
could some body help ?
pawn Код:
//at the top of the script:
new pbar[MAX_PLAYERS];
new PlayerText:Textdraw0[MAX_PLAYERS];
new PlayerText:Textdraw1[MAX_PLAYERS];
new PlayerText:Textdraw2[MAX_PLAYERS];
new PlayerText:Textdraw3[MAX_PLAYERS];
//OnGameModeInIt
for(new i = 0; i < MAX_PLAYERS; i++)
{
Textdraw0[i] = CreatePlayerTextDraw(i, 517.500000, 409.180023, "usebox");
PlayerTextDrawLetterSize(i, Textdraw0[i], 0.000000, 2.358887);
PlayerTextDrawTextSize(i, Textdraw0[i], 628.000000, 0.000000);
PlayerTextDrawAlignment(i, Textdraw0[i], 1);
PlayerTextDrawColor(i, Textdraw0[i], -1061109505);
PlayerTextDrawUseBox(i, Textdraw0[i], true);
PlayerTextDrawBoxColor(i, Textdraw0[i], 102);
PlayerTextDrawSetShadow(i, Textdraw0[i], 0);
PlayerTextDrawSetOutline(i, Textdraw0[i], 0);
PlayerTextDrawFont(i, Textdraw0[i], 0);
Textdraw1[i] = CreatePlayerTextDraw(i, 628.500000, 426.539947, "usebox");
PlayerTextDrawLetterSize(i, Textdraw1[i], 0.000000, -0.005556);
PlayerTextDrawTextSize(i, Textdraw1[i], 516.500000, 0.000000);
PlayerTextDrawAlignment(i, Textdraw1[i], 1);
PlayerTextDrawColor(i, Textdraw1[i], 0);
PlayerTextDrawUseBox(i, Textdraw1[i], true);
PlayerTextDrawBoxColor(i, Textdraw1[i], -240);
PlayerTextDrawSetShadow(i, Textdraw1[i], 0);
PlayerTextDrawSetOutline(i, Textdraw1[i], 0);
PlayerTextDrawFont(i, Textdraw1[i], 0);
Textdraw2[i] = CreatePlayerTextDraw(i, 628.000000, 427.099914, "usebox");
PlayerTextDrawLetterSize(i, Textdraw2[i], 0.000000, -0.100000);
PlayerTextDrawTextSize(i, Textdraw2[i], 517.000000, 0.000000);
PlayerTextDrawAlignment(i, Textdraw2[i], 1);
PlayerTextDrawColor(i, Textdraw2[i], 0);
PlayerTextDrawUseBox(i, Textdraw2[i], true);
PlayerTextDrawBoxColor(i, Textdraw2[i], 145728848);
PlayerTextDrawSetShadow(i, Textdraw2[i], 62);
PlayerTextDrawSetOutline(i, Textdraw2[i], 0);
PlayerTextDrawFont(i, Textdraw2[i], 0);
PlayerTextDrawSetProportional(i, Textdraw2[i], 1);
Textdraw3[i] = CreatePlayerTextDraw(i, 554.500000, 406.559906, "Noob");
PlayerTextDrawLetterSize(i, Textdraw3[i], 0.449999, 1.600000);
PlayerTextDrawAlignment(i, Textdraw3[i], 1);
PlayerTextDrawColor(i, Textdraw3[i], -1061109505);
PlayerTextDrawSetShadow(i, Textdraw3[i], 0);
PlayerTextDrawSetOutline(i, Textdraw3[i], 1);
PlayerTextDrawBackgroundColor(i, Textdraw3[i], 51);
PlayerTextDrawFont(i, Textdraw3[i], 0);
PlayerTextDrawSetProportional(i, Textdraw3[i], 1);
}
//OnPlayerSpawn
if(GetPlayerScore(playerid) <= 0)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 14.7);
pbar[playerid] = 0;
}
else if(GetPlayerScore(playerid) <= 100)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 29.4);
TextDrawSetString(Textdraw3[playerid], "Starter");
pbar[playerid] = 1;
}
else if(GetPlayerScore(playerid) <= 200)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 29.4);
TextDrawSetString(Textdraw3[playerid], "Starter");
pbar[playerid] = 2;
}
else if(GetPlayerScore(playerid) <= 300)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 44.1);
TextDrawSetString(Textdraw3[playerid], "Normal");
pbar[playerid] = 3;
}
else if(GetPlayerScore(playerid) <= 400)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 44.1);
TextDrawSetString(Textdraw3[playerid], "Normal");
pbar[playerid] = 4;
}
else if(GetPlayerScore(playerid) <= 500)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 58.8);
TextDrawSetString(Textdraw3[playerid], "Pro");
pbar[playerid] = 5;
}
else if(GetPlayerScore(playerid) <= 600)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 58.8);
TextDrawSetString(Textdraw3[playerid], "Pro");
pbar[playerid] = 6;
}
else if(GetPlayerScore(playerid) <= 700)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 58.8);
TextDrawSetString(Textdraw3[playerid], "Pro");
pbar[playerid] = 7;
}
else if(GetPlayerScore(playerid) <= 800)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 58.8);
TextDrawSetString(Textdraw3[playerid], "Pro");
pbar[playerid] = 8;
}
else if(GetPlayerScore(playerid) <= 900)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 73.5);
TextDrawSetString(Textdraw3[playerid], "Regular");
pbar[playerid] = 9;
}
else if(GetPlayerScore(playerid) <= 1000)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawSetString(Textdraw3[playerid], "Expert Regular");
TextDrawTextSize(Textdraw2[playerid], 628.000000, 427.099914);
pbar[playerid] = 10;
}
else
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawTextSize(Textdraw2[playerid], 628.000000, 427.099914);
TextDrawSetString(Textdraw3[playerid], "Expert Regular");
pbar[playerid] = 11;
}