12.01.2019, 00:25
Remove these from LoadTOPTEN
remove playerid from LoadTOPTEN leave it LoadTOPTEN()
put LoadTOPTEN at OnGamemodeInit e.g
And here's the command
pawn Код:
for(new c = 0; c < 15; c++)
{
TextDrawShowForPlayer(playerid, CaixasCTT[c]);
}
/*for(new a = 0; a < 14; a++)
{
TextDrawShowForPlayer(playerid, ApText[a]);
}*/
for(new pl = 0; pl < 12; pl++)
{
TextDrawShowForPlayer(playerid, NomeJogador[pl]);
}
for(new po = 0; po < 12; po++)
{
TextDrawShowForPlayer(playerid, PlayerScore[po]);
}
for(new pa = 0; pa < 12; pa++)
{
TextDrawShowForPlayer(playerid, PlayerHitRate[pa]);
}
TextDrawShowForPlayer(playerid, CloseButton);
SelectTextDraw(playerid, 0xb0b7c1ff);
put LoadTOPTEN at OnGamemodeInit e.g
pawn Код:
public OnGameModeInit()
{
LoadTOPTEN();
return 1;
}
pawn Код:
CMD:top(playerid)
{
for(new c = 0; c < 15; c++)
{
TextDrawShowForPlayer(playerid, CaixasCTT[c]);
}
/*for(new a = 0; a < 14; a++)
{
TextDrawShowForPlayer(playerid, ApText[a]);
}*/
for(new pl = 0; pl < 12; pl++)
{
TextDrawShowForPlayer(playerid, NomeJogador[pl]);
}
for(new po = 0; po < 12; po++)
{
TextDrawShowForPlayer(playerid, PlayerScore[po]);
}
for(new pa = 0; pa < 12; pa++)
{
TextDrawShowForPlayer(playerid, PlayerHitRate[pa]);
}
TextDrawShowForPlayer(playerid, CloseButton);
SelectTextDraw(playerid, 0xb0b7c1ff);
SendClientMessage(playerid, DebugColor, "Feito");
return 1;
}