Quote:
Originally Posted by ConnorW
Remove these from LoadTOPTEN
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);
remove playerid from LoadTOPTEN leave it LoadTOPTEN()
put LoadTOPTEN at OnGamemodeInit e.g
pawn Код:
public OnGameModeInit() { LoadTOPTEN(); return 1; }
And here's the command
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; }
|
Nothing, still giving the same error, canceling the execution of the rest of the command.