08.12.2017, 15:30
(
Последний раз редактировалось JonathanFeitosa; 13.12.2017 в 01:05.
)
Alguйm poderia me ajudar, Pois nгo consigo fazer com que elas aparece no inicio. (Й Uma Tela de Login)
ERROS: error 001: expected token: "]", but found "-identifier-"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Linha do Erro:
Код:
new Text:TextLogin0[6]; new PlayerText:TextLogin1[4][MAX_PLAYERS]; OnGameModeInit: TextLogin0[0] = TextDrawCreate(2.000000, 1.500000, "usebox"); TextDrawLetterSize(TextLogin0[0], 0.000000, 16.794445); TextDrawTextSize(TextLogin0[0], 637.444458, 0.000000); TextDrawAlignment(TextLogin0[0], 1); TextDrawColor(TextLogin0[0], 0); TextDrawUseBox(TextLogin0[0], true); TextDrawBoxColor(TextLogin0[0], 102); TextDrawSetShadow(TextLogin0[0], 0); TextDrawSetOutline(TextLogin0[0], 0); TextDrawFont(TextLogin0[0], 0); TextLogin0[1] = TextDrawCreate(2.000000, 320.907409, "usebox"); TextDrawLetterSize(TextLogin0[1], 0.000000, 13.913785); TextDrawTextSize(TextLogin0[1], 637.444458, 0.000000); TextDrawAlignment(TextLogin0[1], 1); TextDrawColor(TextLogin0[1], 0); TextDrawUseBox(TextLogin0[1], true); TextDrawBoxColor(TextLogin0[1], 102); TextDrawSetShadow(TextLogin0[1], 0); TextDrawSetOutline(TextLogin0[1], 0); TextDrawFont(TextLogin0[1], 0); TextLogin0[2] = TextDrawCreate(182.777847, 6.740743, "Cidade Virtual"); TextDrawLetterSize(TextLogin0[2], 0.927222, 6.349626); TextDrawAlignment(TextLogin0[2], 1); TextDrawColor(TextLogin0[2], 16777215); TextDrawSetShadow(TextLogin0[2], 0); TextDrawSetOutline(TextLogin0[2], 1); TextDrawBackgroundColor(TextLogin0[2], 51); TextDrawFont(TextLogin0[2], 1); TextDrawSetProportional(TextLogin0[2], 1); TextLogin0[3] = TextDrawCreate(368.888702, 56.518501, "V1.0"); TextDrawLetterSize(TextLogin0[3], 0.449999, 1.600000); TextDrawAlignment(TextLogin0[3], 1); TextDrawColor(TextLogin0[3], -1); TextDrawSetShadow(TextLogin0[3], 0); TextDrawSetOutline(TextLogin0[3], 1); TextDrawBackgroundColor(TextLogin0[3], 51); TextDrawFont(TextLogin0[3], 1); TextDrawSetProportional(TextLogin0[3], 1); TextLogin0[4] = TextDrawCreate(203.333297, 66.370353, "www.cidadevirtual.com.br"); TextDrawLetterSize(TextLogin0[4], 0.449999, 1.600000); TextDrawAlignment(TextLogin0[4], 1); TextDrawColor(TextLogin0[4], -1); TextDrawSetShadow(TextLogin0[4], 0); TextDrawSetOutline(TextLogin0[4], 1); TextDrawBackgroundColor(TextLogin0[4], 51); TextDrawFont(TextLogin0[4], 1); TextDrawSetProportional(TextLogin0[4], 1); TextLogin0[5] = TextDrawCreate(150.555603, 92.296318, "Melhor Qualidade do que Quantidade!"); TextDrawLetterSize(TextLogin0[5], 0.449999, 1.600000); TextDrawAlignment(TextLogin0[5], 1); TextDrawColor(TextLogin0[5], -1); TextDrawSetShadow(TextLogin0[5], 0); TextDrawSetOutline(TextLogin0[5], 1); TextDrawBackgroundColor(TextLogin0[5], 51); TextDrawFont(TextLogin0[5], 1); TextDrawSetProportional(TextLogin0[5], 1); } CarregarTextPlayer(playerid) { TextLogin1[playerid][0] = CreatePlayerTextDraw(playerid, 121.666679, 141.037078, "Login"); PlayerTextDrawLetterSize(playerid, TextLogin1[playerid][0], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, TextLogin1[playerid][0], 1); PlayerTextDrawColor(playerid, TextLogin1[playerid][0], -1); PlayerTextDrawSetShadow(playerid, TextLogin1[playerid][0], 0); PlayerTextDrawSetOutline(playerid, TextLogin1[playerid][0], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin1[playerid][0], 51); PlayerTextDrawFont(playerid, TextLogin1[playerid][0], 1); PlayerTextDrawSetProportional(playerid, TextLogin1[playerid][0], 1); TextLogin1[playerid][1] = CreatePlayerTextDraw(playerid, 207.777770, 141.037017, "Registro"); PlayerTextDrawLetterSize(playerid, TextLogin1[playerid][1], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, TextLogin1[playerid][1], 1); PlayerTextDrawColor(playerid, TextLogin1[playerid][1], -1); PlayerTextDrawSetShadow(playerid, TextLogin1[playerid][1], 0); PlayerTextDrawSetOutline(playerid, TextLogin1[playerid][1], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin1[playerid][1], 51); PlayerTextDrawFont(playerid, TextLogin1[playerid][1], 1); PlayerTextDrawSetProportional(playerid, TextLogin1[playerid][1], 1); TextLogin1[playerid][2] = CreatePlayerTextDraw(playerid, 311.666778, 141.555511, "Creditos"); PlayerTextDrawLetterSize(playerid, TextLogin1[playerid][2], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, TextLogin1[playerid][2], 1); PlayerTextDrawColor(playerid, TextLogin1[playerid][2], -1); PlayerTextDrawSetShadow(playerid, TextLogin1[playerid][2], 0); PlayerTextDrawSetOutline(playerid, TextLogin1[playerid][2], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin1[playerid][2], 51); PlayerTextDrawFont(playerid, TextLogin1[playerid][2], 1); PlayerTextDrawSetProportional(playerid, TextLogin1[playerid][2], 1); TextLogin1[playerid][3] = CreatePlayerTextDraw(playerid, 430.000091, 141.037002, "Sair"); PlayerTextDrawLetterSize(playerid, TextLogin1[playerid][3], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, TextLogin1[playerid][3], 1); PlayerTextDrawColor(playerid, TextLogin1[playerid][3], -1); PlayerTextDrawSetShadow(playerid, TextLogin1[playerid][3], 0); PlayerTextDrawSetOutline(playerid, TextLogin1[playerid][3], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin1[playerid][3], 51); PlayerTextDrawFont(playerid, TextLogin1[playerid][3], 1); PlayerTextDrawSetProportional(playerid, TextLogin1[playerid][3], 1); for(new a; a < sizeof(TextLogin1[playerid]); ++a) PlayerTextDrawSetSelectable(playerid, PlayerText:TextLogin1[playerid][a], true); return 1; } public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(clickedid == Text: INVALID_TEXT_DRAW) { SetlectTextDraw(playerid,0x35F344F); } return 1; } OnPlayerConnect: CarregarTextPlayer(playerid); SelectTextDraw(playerid, 0x35F344F); for(new i = 0; i < sizeof(TextLogin0); i++) TextDrawShowForPlayer(playerid, TextLogin0[i]); for(new i = 0; i < sizeof(TextLogin1[playerid]) -1; i++) PlayerTextDrawShow(playerid, PlayerText:TextLogin1[playerid][i]);
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Linha do Erro:
Код:
for(new a; a < sizeof(TextLogin1[playerid]); ++a) PlayerTextDrawSetSelectable(playerid, PlayerText:TextLogin1[playerid][a], true);