20.11.2018, 23:23
(
Последний раз редактировалось LeonardoAlberto; 23.11.2018 в 16:12.
)
aqui esta os erros
aqui esta as linhas
aqui esta textdraw
aqui esta o sistema
RESOLVIDO
Код:
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(319):warning 213: tag mismatch C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(319) : warning 213: tag mismatch C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(334) : warning 213: tag mismatch
Код:
if(clickedid == Textdraw2[playerid]) if(clickedid == Textdraw2[playerid]) if(clickedid == Textdraw4[playerid])
Код:
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 0.000000, 0.000000, "LD_SPAC:white"); PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 0.000000); PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 640.000000, 448.000000); PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1); PlayerTextDrawColor(playerid, Textdraw0[playerid], -2139062017); PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0); PlayerTextDrawFont(playerid, Textdraw0[playerid], 4); Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 641.531494, 1.500000, "usebox"); PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.000000, 49.396297); PlayerTextDrawTextSize(playerid, Textdraw1[playerid], -2.000000, 0.000000); PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1); PlayerTextDrawColor(playerid, Textdraw1[playerid], 0); PlayerTextDrawUseBox(playerid, Textdraw1[playerid], true); PlayerTextDrawBoxColor(playerid, Textdraw1[playerid], 102); PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 0); PlayerTextDrawFont(playerid, Textdraw1[playerid], 0); Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 36.076148, 174.416641, "LOGAR"); PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1); PlayerTextDrawColor(playerid, Textdraw2[playerid], -1); PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1); PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51); PlayerTextDrawFont(playerid, Textdraw2[playerid], 3); PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1); PlayerTextDrawSetSelectable(playerid, Textdraw2[playerid], true); Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 114.445098, 160.166656, "usebox"); PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.000000, 4.803704); PlayerTextDrawTextSize(playerid, Textdraw3[playerid], 4.559297, 0.000000); PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1); PlayerTextDrawColor(playerid, Textdraw3[playerid], 0); PlayerTextDrawUseBox(playerid, Textdraw3[playerid], true); PlayerTextDrawBoxColor(playerid, Textdraw3[playerid], 102); PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 0); PlayerTextDrawFont(playerid, Textdraw3[playerid], 0); Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 20.146446, 233.916717, "Registrar"); PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1); PlayerTextDrawColor(playerid, Textdraw4[playerid], -1); PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 1); PlayerTextDrawBackgroundColor(playerid, Textdraw4[playerid], 51); PlayerTextDrawFont(playerid, Textdraw4[playerid], 3); PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1); PlayerTextDrawSetSelectable(playerid, Textdraw4[playerid], true); Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 113.508056, 220.250061, "usebox"); PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.000000, 4.933330); PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 5.027818, 0.000000); PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1); PlayerTextDrawColor(playerid, Textdraw5[playerid], 0); PlayerTextDrawUseBox(playerid, Textdraw5[playerid], true); PlayerTextDrawBoxColor(playerid, Textdraw5[playerid], 102); PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0); PlayerTextDrawFont(playerid, Textdraw5[playerid], 0); Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 22.020545, 291.083282, "Creditos"); PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1); PlayerTextDrawColor(playerid, Textdraw6[playerid], -1); PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], 1); PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 51); PlayerTextDrawFont(playerid, Textdraw6[playerid], 3); PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1); PlayerTextDrawSetSelectable(playerid, Textdraw6[playerid], true); Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 113.039535, 277.999908, "usebox"); PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.000000, 4.911484); PlayerTextDrawTextSize(playerid, Textdraw7[playerid], 5.964860, 0.000000); PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1); PlayerTextDrawColor(playerid, Textdraw7[playerid], 0); PlayerTextDrawUseBox(playerid, Textdraw7[playerid], true); PlayerTextDrawBoxColor(playerid, Textdraw7[playerid], 102); PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 0); PlayerTextDrawFont(playerid, Textdraw7[playerid], 0); Textdraw8[playerid] = CreatePlayerTextDraw(playerid, 37.950248, 354.666687, "Sair"); PlayerTextDrawLetterSize(playerid, Textdraw8[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Textdraw8[playerid], 1); PlayerTextDrawColor(playerid, Textdraw8[playerid], -1); PlayerTextDrawSetShadow(playerid, Textdraw8[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw8[playerid], 1); PlayerTextDrawBackgroundColor(playerid, Textdraw8[playerid], 51); PlayerTextDrawFont(playerid, Textdraw8[playerid], 3); PlayerTextDrawSetProportional(playerid, Textdraw8[playerid], 1); PlayerTextDrawSetSelectable(playerid, Textdraw8[playerid], true); Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 110.696929, 340.416625, "usebox"); PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.000000, 5.012217); PlayerTextDrawTextSize(playerid, Textdraw9[playerid], 5.964860, 0.000000); PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1); PlayerTextDrawColor(playerid, Textdraw9[playerid], 0); PlayerTextDrawUseBox(playerid, Textdraw9[playerid], true); PlayerTextDrawBoxColor(playerid, Textdraw9[playerid], 102); PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 0); PlayerTextDrawFont(playerid, Textdraw9[playerid], 0); Textdraw12[playerid] = CreatePlayerTextDraw(playerid, 488.668212, 201.250000, "BEM VINDO"); PlayerTextDrawLetterSize(playerid, Textdraw12[playerid], 0.622414, 2.650002); PlayerTextDrawAlignment(playerid, Textdraw12[playerid], 1); PlayerTextDrawColor(playerid, Textdraw12[playerid], -1); PlayerTextDrawSetShadow(playerid, Textdraw12[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw12[playerid], 1); PlayerTextDrawBackgroundColor(playerid, Textdraw12[playerid], 51); PlayerTextDrawFont(playerid, Textdraw12[playerid], 1); PlayerTextDrawSetProportional(playerid, Textdraw12[playerid], 1); Textdraw13[playerid] = CreatePlayerTextDraw(playerid, 612.951660, 227.250000, "usebox"); PlayerTextDrawLetterSize(playerid, Textdraw13[playerid], 0.000000, -0.316666); PlayerTextDrawTextSize(playerid, Textdraw13[playerid], 485.730590, 0.000000); PlayerTextDrawAlignment(playerid, Textdraw13[playerid], 1); PlayerTextDrawColor(playerid, Textdraw13[playerid], -1); PlayerTextDrawUseBox(playerid, Textdraw13[playerid], true); PlayerTextDrawBoxColor(playerid, Textdraw13[playerid], -1061109505); PlayerTextDrawSetShadow(playerid, Textdraw13[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw13[playerid], 0); PlayerTextDrawBackgroundColor(playerid, Textdraw13[playerid], 65535); PlayerTextDrawFont(playerid, Textdraw13[playerid], 0); Textdraw14[playerid] = CreatePlayerTextDraw(playerid, 116.193267, 387.916687, "LD_SPAC:white"); PlayerTextDrawLetterSize(playerid, Textdraw14[playerid], 0.000000, 0.000000); PlayerTextDrawTextSize(playerid, Textdraw14[playerid], 0.468521, -231.000030); PlayerTextDrawAlignment(playerid, Textdraw14[playerid], 1); PlayerTextDrawColor(playerid, Textdraw14[playerid], 255); PlayerTextDrawSetShadow(playerid, Textdraw14[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw14[playerid], 0); PlayerTextDrawFont(playerid, Textdraw14[playerid], 4); CarregarLogin(playerid); return 1; }
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid) if(_:clickedid != INVALID_TEXT_DRAW) { if(clickedid == Textdraw2[playerid]) { new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid,loginname,sizeof(loginname)); GetPlayerName(playerid, plname, sizeof(plname)); format(gstring,sizeof(gstring), "Contas/%s.ini", plname); if(DOF2_FileExists(gstring)) { // SEU SISTEMA DE LOGIN } else { ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Vocк nгo tem uma conta!", "Ok", ""); } return 1; } if(clickedid == Textdraw4[playerid]) { new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid, plname, sizeof(plname)); format(gstring,sizeof(gstring), "Contas/%s.ini", plname); if(DOF2_FileExists(gstring)) { ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Vocк tem uma conta, logue-se!", "Ok", ""); } else { // SEU SISTEMA DE LOGIN AQUI } return 1; } if(clickedid == Textdraw4[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "Vocк foi kickado por nгo se registrar/logar!"); Kick(playerid); } return 1; } return 1; }