LoginTextDraw.pwn(59) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(60) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(61) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(62) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(63) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(64) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(65) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(66) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(67) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(68) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(69) : error 017: undefined symbol "Textdraw0"
LoginTextDraw.pwn(71) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(72) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(73) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(74) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(75) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(76) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(77) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(78) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(79) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(80) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(81) : error 017: undefined symbol "Textdraw1"
LoginTextDraw.pwn(83) : error 017: undefined symbol "Textdraw2"
LoginTextDraw.pwn(84) : error 017: undefined symbol "Textdraw2"
LoginTextDraw.pwn(85) : error 017: undefined symbol "Textdraw2"
LoginTextDraw.pwn(86) : error 017: undefined symbol "Textdraw2"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
new Text:Textdraw0[MAX_PLAYERS];
new Text:Textdraw1[MAX_PLAYERS];
new Text:Textdraw2[MAX_PLAYERS];
new Text:Textdraw3[MAX_PLAYERS];
new Text:Textdraw4[MAX_PLAYERS];
new Text:Textdraw5[MAX_PLAYERS]; // Textdraw Registrar
new Text:Textdraw6[MAX_PLAYERS]; // Texdraw Entrar
new Text:Textdraw7[MAX_PLAYERS]; // Textdraw Regras
new Text:Textdraw8[MAX_PLAYERS];
new Text:Textdraw9[MAX_PLAYERS];
new Text:Textdraw10[MAX_PLAYERS];
new Text:Textdraw11[MAX_PLAYERS];
new Text:Textdraw12[MAX_PLAYERS];
new Text:Textdraw13[MAX_PLAYERS];
new Text:Textdraw14[MAX_PLAYERS];
new Text:Textdraw15[MAX_PLAYERS];
new Text:Textdraw16[MAX_PLAYERS];
new Text:Textdraw17[MAX_PLAYERS];
new Text:Textdraw18[MAX_PLAYERS]; // Textdraw X- Sair
new Text:Textdraw19[MAX_PLAYERS];
new Text:Textdraw20[MAX_PLAYERS];
troca Text por PlayerText
e pra que isso td de variбveis conforme ajudas que tu recebe ainda n criou coragem pra aprender programar? pode usar isso em uma array bi dimensional, new PlayerText:textdraw[MAX_PLAYERS][21]; larga de ser vagabundo e aprende esse carai, fica pedindo ajuda pra qualquer erro que aparece, peзo que consulte a wiki, de 20 post nessa page 7 sгo seus, toma vergonha. |
#include <a_samp>
#include <zcmd>
new Text:Textdraw[21];
public OnFilterScriptInit()
{
Textdraw[0] = TextDrawCreate(421.500000, 118.539993, "usebox");
TextDrawLetterSize(Textdraw[0], 0.000000, 33.283332);
TextDrawTextSize(Textdraw[0], 188.000000, 0.000000);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], 0);
TextDrawUseBox(Textdraw[0], true);
TextDrawBoxColor(Textdraw[0], -2147483393);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 0);
TextDrawBackgroundColor(Textdraw[0], 41215);
TextDrawFont(Textdraw[0], 0);
Textdraw[1] = TextDrawCreate(416.000000, 124.700004, "usebox");
TextDrawLetterSize(Textdraw[1], 0.000000, 31.976663);
TextDrawTextSize(Textdraw[1], 193.500000, 0.000000);
TextDrawAlignment(Textdraw[1], 1);
TextDrawColor(Textdraw[1], 0);
TextDrawUseBox(Textdraw[1], true);
TextDrawBoxColor(Textdraw[1], -2139062017);
TextDrawSetShadow(Textdraw[1], 0);
TextDrawSetOutline(Textdraw[1], 0);
TextDrawBackgroundColor(Textdraw[1], -2139062017);
TextDrawFont(Textdraw[1], 0);
Textdraw[2] = TextDrawCreate(397.500000, 186.300003, "usebox");
TextDrawLetterSize(Textdraw[2], 0.000000, 2.607776);
TextDrawTextSize(Textdraw[2], 212.500000, 0.000000);
TextDrawAlignment(Textdraw[2], 1);
TextDrawColor(Textdraw[2], 0);
TextDrawUseBox(Textdraw[2], true);
TextDrawBoxColor(Textdraw[2], 102);
TextDrawSetShadow(Textdraw[2], 0);
TextDrawSetOutline(Textdraw[2], 0);
TextDrawFont(Textdraw[2], 0);
Textdraw[3] = TextDrawCreate(396.000000, 256.859954, "usebox");
TextDrawLetterSize(Textdraw[3], 0.000000, 2.607776);
TextDrawTextSize(Textdraw[3], 211.000000, 0.000000);
TextDrawAlignment(Textdraw[3], 1);
TextDrawColor(Textdraw[3], 0);
TextDrawUseBox(Textdraw[3], true);
TextDrawBoxColor(Textdraw[3], 102);
TextDrawSetShadow(Textdraw[3], 0);
TextDrawSetOutline(Textdraw[3], 0);
TextDrawFont(Textdraw[3], 0);
Textdraw[4] = TextDrawCreate(395.500000, 327.979827, "usebox");
TextDrawLetterSize(Textdraw[4], 0.000000, 2.732220);
TextDrawTextSize(Textdraw[4], 210.000000, 0.000000);
TextDrawAlignment(Textdraw[4], 1);
TextDrawColor(Textdraw[4], 0);
TextDrawUseBox(Textdraw[4], true);
TextDrawBoxColor(Textdraw[4], 102);
TextDrawSetShadow(Textdraw[4], 0);
TextDrawSetOutline(Textdraw[4], 0);
TextDrawFont(Textdraw[4], 0);
Textdraw[5] = TextDrawCreate(251.500000, 189.840011, "REGISTRAR");
TextDrawLetterSize(Textdraw[5], 0.449999, 1.600000);
TextDrawAlignment(Textdraw[5], 1);
TextDrawColor(Textdraw[5], 255);
TextDrawSetShadow(Textdraw[5], 0);
TextDrawSetOutline(Textdraw[5], 1);
TextDrawBackgroundColor(Textdraw[5], -2147483393);
TextDrawFont(Textdraw[5], 2);
TextDrawSetProportional(Textdraw[5], 1);
TextDrawSetSelectable(Textdraw[5], true);
Textdraw[6] = TextDrawCreate(267.000000, 260.399963, "ENTRAR");
TextDrawLetterSize(Textdraw[6], 0.449999, 1.600000);
TextDrawAlignment(Textdraw[6], 1);
TextDrawColor(Textdraw[6], 255);
TextDrawSetShadow(Textdraw[6], 0);
TextDrawSetOutline(Textdraw[6], 1);
TextDrawBackgroundColor(Textdraw[6], -2147483393);
TextDrawFont(Textdraw[6], 2);
TextDrawSetProportional(Textdraw[6], 1);
TextDrawSetSelectable(Textdraw[6], true);
Textdraw[7] = TextDrawCreate(266.000000, 331.520050, "REGRAS");
TextDrawLetterSize(Textdraw[7], 0.449999, 1.600000);
TextDrawAlignment(Textdraw[7], 1);
TextDrawColor(Textdraw[7], 255);
TextDrawSetShadow(Textdraw[7], 0);
TextDrawSetOutline(Textdraw[7], 1);
TextDrawBackgroundColor(Textdraw[7], -2147483393);
TextDrawFont(Textdraw[7], 2);
TextDrawSetProportional(Textdraw[7], 1);
TextDrawSetSelectable(Textdraw[7], true);
Textdraw[8] = TextDrawCreate(412.500000, 399.660003, "usebox");
TextDrawLetterSize(Textdraw[8], 0.000000, 0.990001);
TextDrawTextSize(Textdraw[8], 196.500000, 0.000000);
TextDrawAlignment(Textdraw[8], 1);
TextDrawColor(Textdraw[8], 0);
TextDrawUseBox(Textdraw[8], true);
TextDrawBoxColor(Textdraw[8], 102);
TextDrawSetShadow(Textdraw[8], 0);
TextDrawSetOutline(Textdraw[8], 0);
TextDrawFont(Textdraw[8], 0);
Textdraw[9] = TextDrawCreate(221.000000, 398.719940, "www.SeuSite.com.br");
TextDrawLetterSize(Textdraw[9], 0.460999, 1.090400);
TextDrawAlignment(Textdraw[9], 1);
TextDrawColor(Textdraw[9], 255);
TextDrawSetShadow(Textdraw[9], 0);
TextDrawSetOutline(Textdraw[9], 1);
TextDrawBackgroundColor(Textdraw[9], -2147483393);
TextDrawFont(Textdraw[9], 3);
TextDrawSetProportional(Textdraw[9], 1);
Textdraw[10] = TextDrawCreate(412.500000, 65.339996, "usebox");
TextDrawLetterSize(Textdraw[10], 0.000000, 4.972222);
TextDrawTextSize(Textdraw[10], 195.500000, 0.000000);
TextDrawAlignment(Textdraw[10], 1);
TextDrawColor(Textdraw[10], 0);
TextDrawUseBox(Textdraw[10], true);
TextDrawBoxColor(Textdraw[10], -2147483393);
TextDrawSetShadow(Textdraw[10], 0);
TextDrawSetOutline(Textdraw[10], 0);
TextDrawBackgroundColor(Textdraw[10], -1);
TextDrawFont(Textdraw[10], 0);
Textdraw[11] = TextDrawCreate(408.500000, 67.579994, "usebox");
TextDrawLetterSize(Textdraw[11], 0.000000, 4.349999);
TextDrawTextSize(Textdraw[11], 198.000000, 0.000000);
TextDrawAlignment(Textdraw[11], 1);
TextDrawColor(Textdraw[11], 0);
TextDrawUseBox(Textdraw[11], true);
TextDrawBoxColor(Textdraw[11], -1061109505);
TextDrawSetShadow(Textdraw[11], 0);
TextDrawSetOutline(Textdraw[11], 0);
TextDrawFont(Textdraw[11], 0);
Textdraw[12] = TextDrawCreate(227.000000, 75.040000, "BEM VINDO(A)");
TextDrawLetterSize(Textdraw[12], 0.714000, 2.518399);
TextDrawAlignment(Textdraw[12], 1);
TextDrawColor(Textdraw[12], -2147483393);
TextDrawSetShadow(Textdraw[12], 0);
TextDrawSetOutline(Textdraw[12], 1);
TextDrawBackgroundColor(Textdraw[12], -1);
TextDrawFont(Textdraw[12], 3);
TextDrawSetProportional(Textdraw[12], 1);
Textdraw[13] = TextDrawCreate(230.500000, 125.999984, "BRASIL SERVER");
TextDrawLetterSize(Textdraw[13], 0.666000, 3.352799);
TextDrawAlignment(Textdraw[13], 1);
TextDrawColor(Textdraw[13], -2147483393);
TextDrawSetShadow(Textdraw[13], 0);
TextDrawSetOutline(Textdraw[13], 1);
TextDrawBackgroundColor(Textdraw[13], 255);
TextDrawFont(Textdraw[13], 3);
TextDrawSetProportional(Textdraw[13], 1);
Textdraw[14] = TextDrawCreate(270.000000, 152.880020, ".");
TextDrawLetterSize(Textdraw[14], 12.878494, 1.291999);
TextDrawAlignment(Textdraw[14], 1);
TextDrawColor(Textdraw[14], -2147483393);
TextDrawSetShadow(Textdraw[14], 0);
TextDrawSetOutline(Textdraw[14], 1);
TextDrawBackgroundColor(Textdraw[14], -1523963137);
TextDrawFont(Textdraw[14], 0);
TextDrawSetProportional(Textdraw[14], 1);
Textdraw[15] = TextDrawCreate(291.500000, 166.319976, "v1.0a");
TextDrawLetterSize(Textdraw[15], 0.425000, 1.034400);
TextDrawAlignment(Textdraw[15], 1);
TextDrawColor(Textdraw[15], 255);
TextDrawSetShadow(Textdraw[15], 0);
TextDrawSetOutline(Textdraw[15], 1);
TextDrawBackgroundColor(Textdraw[15], -16776961);
TextDrawFont(Textdraw[15], 3);
TextDrawSetProportional(Textdraw[15], 1);
Textdraw[16] = TextDrawCreate(409.000000, 48.539997, "usebox");
TextDrawLetterSize(Textdraw[16], 0.000000, 1.114444);
TextDrawTextSize(Textdraw[16], 342.000000, 0.000000);
TextDrawAlignment(Textdraw[16], 1);
TextDrawColor(Textdraw[16], 0);
TextDrawUseBox(Textdraw[16], true);
TextDrawBoxColor(Textdraw[16], -2147483393);
TextDrawSetShadow(Textdraw[16], 0);
TextDrawSetOutline(Textdraw[16], 0);
TextDrawFont(Textdraw[16], 0);
Textdraw[17] = TextDrawCreate(405.500000, 50.779998, "usebox");
TextDrawLetterSize(Textdraw[17], 0.000000, 0.554444);
TextDrawTextSize(Textdraw[17], 345.500000, 0.000000);
TextDrawAlignment(Textdraw[17], 1);
TextDrawColor(Textdraw[17], 0);
TextDrawUseBox(Textdraw[17], true);
TextDrawBoxColor(Textdraw[17], -1061109505);
TextDrawSetShadow(Textdraw[17], 0);
TextDrawSetOutline(Textdraw[17], 0);
TextDrawFont(Textdraw[17], 0);
Textdraw[18] = TextDrawCreate(349.500000, 49.279968, "x - sair");
TextDrawLetterSize(Textdraw[18], 0.369000, 0.793600);
TextDrawAlignment(Textdraw[18], 1);
TextDrawColor(Textdraw[18], -2147483393);
TextDrawSetShadow(Textdraw[18], 0);
TextDrawSetOutline(Textdraw[18], 1);
TextDrawBackgroundColor(Textdraw[18], -1);
TextDrawFont(Textdraw[18], 3);
TextDrawSetProportional(Textdraw[18], 1);
TextDrawSetSelectable(Textdraw[18], true);
Textdraw[19] = TextDrawCreate(641.500000, 1.500000, "usebox");
TextDrawLetterSize(Textdraw[19], 0.000000, 2.483333);
TextDrawTextSize(Textdraw[19], -2.000000, 0.000000);
TextDrawAlignment(Textdraw[19], 1);
TextDrawColor(Textdraw[19], 0);
TextDrawUseBox(Textdraw[19], true);
TextDrawBoxColor(Textdraw[19], 102);
TextDrawSetShadow(Textdraw[19], 0);
TextDrawSetOutline(Textdraw[19], 0);
TextDrawFont(Textdraw[19], 0);
Textdraw[20] = TextDrawCreate(641.500000, 435.500000, "usebox");
TextDrawLetterSize(Textdraw[20], 0.000000, 1.176666);
TextDrawTextSize(Textdraw[20], -2.000000, 0.000000);
TextDrawAlignment(Textdraw[20], 1);
TextDrawColor(Textdraw[20], 0);
TextDrawUseBox(Textdraw[20], true);
TextDrawBoxColor(Textdraw[20], 102);
TextDrawSetShadow(Textdraw[20], 0);
TextDrawSetOutline(Textdraw[20], 0);
TextDrawFont(Textdraw[20], 0);
return 1;
}
public OnFilterScriptExit()
{
for(new i = 0; i < sizeof(Textdraw); i++){
TextDrawDestroy(Textdraw[i]);
}
return 1;
}
public OnPlayerConnect(playerid)
{
for(new i = 0; i < sizeof(Textdraw); i++){
TextDrawShowForPlayer(playerid, Textdraw[i]);
}
SelectTextDraw(playerid, 0xFF0000FF);
return 1;
}
CMD:teste(playerid)
{
for(new i = 0; i < sizeof(Textdraw); i++){
TextDrawShowForPlayer(playerid, Textdraw[i]);
}
SelectTextDraw(playerid, 0xFF0000FF);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
for(new i = 0; i < sizeof(Textdraw); i++){
TextDrawHideForPlayer(playerid, Textdraw[i]);
}
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid){
if(clickedid == Textdraw[5])
{
SendClientMessage(playerid, 0xFFFFFFAA, "Clicou no login \"Textdraw[5]\".");
CancelSelectTextDraw(playerid);
}
if(clickedid == Textdraw[6])
{
SendClientMessage(playerid, 0xFFFFFFAA, "Clicou no login \"Textdraw[6]\".");
CancelSelectTextDraw(playerid);
}
if(clickedid == Textdraw[7])
{
SendClientMessage(playerid, 0xFFFFFFAA, "Clicou no login \"Textdraw[7]\".");
CancelSelectTextDraw(playerid);
}
return 1;
}
Obrigado pelas criticas construtivas, irei estudar sim pode deixar
Tou tentando encaixar as textdraw na OnFilterScriptInit mais nгo ta dando certo, olha ai https://pastebin.com/X24snqBa |