[Ajuda] TextDraw
#1

Essa й minha tela de login :



Quando "dois" ou "Mais" Player loga ao mesmo tempo... Um meche no login do outro, causando assim interferкncia nos dados.
Reply
#2

Vocк estб usando PlayerTextDraw ?
Reply
#3

Quote:
Originally Posted by FerrariL
Посмотреть сообщение
Vocк estб usando PlayerTextDraw ?
Para isso acontecer ele deve estar a usar algo de global serб?
Reply
#4

Quote:
Originally Posted by HelderPT
Посмотреть сообщение
Para isso acontecer ele deve estar a usar algo de global serб?
Provavelmente estб usando global.
Reply
#5

Nгo estб global

PHP код:
    PlayerRegistro[0][playerid] = CreatePlayerTextDraw(playerid, 236.600158, 76.210281, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[0][playerid], 0.000000, 26.149972);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[0][playerid], 402.600158, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[0][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[0][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerRegistro[0][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerRegistro[0][playerid], 120);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[0][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[0][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[0][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[0][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[0][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[0][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[0][playerid], false);
    
PlayerRegistro[1][playerid] = CreatePlayerTextDraw(playerid, 237.000000, 75.511093, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[1][playerid], 0.000000, 4.799997);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[1][playerid], 403.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[1][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[1][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerRegistro[1][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerRegistro[1][playerid], -2139062132);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[1][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[1][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[1][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[1][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[1][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[1][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[1][playerid], false);
    
PlayerRegistro[2][playerid] = CreatePlayerTextDraw(playerid, 261.000000, 170.910430, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[2][playerid], 0.000000, 1.850000);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[2][playerid], 377.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[2][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[2][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerRegistro[2][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerRegistro[2][playerid], -2139062017);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[2][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[2][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[2][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[2][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[2][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[2][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[2][playerid], false);
    
PlayerRegistro[3][playerid] = CreatePlayerTextDraw(playerid, 261.000000, 197.212036, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[3][playerid], 0.000000, 1.850000);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[3][playerid], 377.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[3][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[3][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerRegistro[3][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerRegistro[3][playerid], -2139062017);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[3][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[3][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[3][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[3][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[3][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[3][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[3][playerid], false);
    
PlayerRegistro[4][playerid] = CreatePlayerTextDraw(playerid, 261.000000, 223.167572, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[4][playerid], 0.000000, 1.850000);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[4][playerid], 377.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[4][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[4][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerRegistro[4][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerRegistro[4][playerid], -2139062017);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[4][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[4][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[4][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[4][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[4][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[4][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[4][playerid], false);
    
PlayerRegistro[5][playerid] = CreatePlayerTextDraw(playerid, 294.700012, 252.069335, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[5][playerid], 0.000000, 1.750000);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[5][playerid], 342.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[5][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[5][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerRegistro[5][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerRegistro[5][playerid], 8388863);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[5][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[5][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[5][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[5][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[5][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[5][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[5][playerid], false);
    
PlayerRegistro[6][playerid] = CreatePlayerTextDraw(playerid, 270.000000, 84.222190, "Comunidade~n~_____vida_real");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[6][playerid], 0.400000, 1.600000);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[6][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[6][playerid], 41215);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[6][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[6][playerid], 1);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[6][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[6][playerid], 3);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[6][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[6][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[6][playerid], false);
    
PlayerRegistro[7][playerid] = CreatePlayerTextDraw(playerid, 238.500000, 300.755615, "somos_todos_rpg");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[7][playerid], 0.198500, 1.039998);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[7][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[7][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[7][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[7][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[7][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[7][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[7][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[7][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[7][playerid], false);
    
PlayerRegistro[8][playerid] = CreatePlayerTextDraw(playerid, 269.000000, 172.277069, "Digite_aqui_seu_nome");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[8][playerid], 0.221499, 1.375998);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[8][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[8][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[8][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[8][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[8][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[8][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[8][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[8][playerid], 0);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[8][playerid], 370.000000, 10.000000);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[8][playerid], true);
    
PlayerRegistro[9][playerid] = CreatePlayerTextDraw(playerid, 266.000000, 198.088897, "Digite_aqui_sua_senha");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[9][playerid], 0.221499, 1.375998);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[9][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[9][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[9][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[9][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[9][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[9][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[9][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[9][playerid], 0);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[9][playerid], 372.000000, 10.000000);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[9][playerid], true);
    
PlayerRegistro[10][playerid] = CreatePlayerTextDraw(playerid, 266.700073, 224.222259, "Digite_aqui_seu_e-mail");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[10][playerid], 0.221499, 1.375998);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[10][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[10][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[10][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[10][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[10][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[10][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[10][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[10][playerid], 0);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[10][playerid], 373.000000, 10.000000);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[10][playerid], true);
    
PlayerRegistro[11][playerid] = CreatePlayerTextDraw(playerid, 296.700073, 253.466705, "registrar");
    
PlayerTextDrawLetterSize(playerid, PlayerRegistro[11][playerid], 0.186000, 1.332443);
    
PlayerTextDrawAlignment(playerid, PlayerRegistro[11][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerRegistro[11][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[11][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerRegistro[11][playerid], 1);
    
PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[11][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerRegistro[11][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerRegistro[11][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerRegistro[11][playerid], 0);
    
PlayerTextDrawTextSize(playerid, PlayerRegistro[11][playerid], 341.000000, 10.000000);
    
PlayerTextDrawSetSelectable(playerid, PlayerRegistro[11][playerid], true);
    
PlayerLogin[0][playerid] = CreatePlayerTextDraw(playerid, 236.600158, 76.210281, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[0][playerid], 0.000000, 26.149972);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[0][playerid], 402.600158, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[0][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[0][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerLogin[0][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerLogin[0][playerid], 120);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[0][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[0][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[0][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[0][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[0][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[0][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[0][playerid], false);
    
PlayerLogin[1][playerid] = CreatePlayerTextDraw(playerid, 237.000000, 75.511093, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[1][playerid], 0.000000, 4.799998);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[1][playerid], 403.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[1][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[1][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerLogin[1][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerLogin[1][playerid], -2139062132);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[1][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[1][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[1][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[1][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[1][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[1][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[1][playerid], false);
    
PlayerLogin[2][playerid] = CreatePlayerTextDraw(playerid, 261.000000, 181.911102, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[2][playerid], 0.000000, 1.850001);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[2][playerid], 377.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[2][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[2][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerLogin[2][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerLogin[2][playerid], -2139062017);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[2][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[2][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[2][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[2][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[2][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[2][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[2][playerid], false);
    
PlayerLogin[3][playerid] = CreatePlayerTextDraw(playerid, 261.000000, 210.812866, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[3][playerid], 0.000000, 1.850001);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[3][playerid], 377.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[3][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[3][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerLogin[3][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerLogin[3][playerid], -2139062017);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[3][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[3][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[3][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[3][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[3][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[3][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[3][playerid], false);
    
PlayerLogin[4][playerid] = CreatePlayerTextDraw(playerid, 292.202484, 252.677917, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[4][playerid], 0.000000, 1.900001);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[4][playerid], 347.702484, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[4][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[4][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerLogin[4][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerLogin[4][playerid], -1523963137);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[4][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[4][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[4][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[4][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[4][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[4][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid,PlayerLogin[4][playerid], false);
    
PlayerLogin[5][playerid] = CreatePlayerTextDraw(playerid,355.202484, 292.500183, "_");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[5][playerid], 0.000000, 1.550001);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[5][playerid], 399.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[5][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[5][playerid], -1);
    
PlayerTextDrawUseBox(playerid, PlayerLogin[5][playerid], 1);
    
PlayerTextDrawBoxColor(playerid, PlayerLogin[5][playerid], 8388863);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[5][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[5][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[5][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[5][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[5][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[5][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[5][playerid], false);
    
PlayerLogin[6][playerid] = CreatePlayerTextDraw(playerid, 241.500000, 292.666687, "Ainda_nao_tem_conta_?");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[6][playerid], 0.204500, 1.413332);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[6][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[6][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[6][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[6][playerid], 1);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[6][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[6][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[6][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[6][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[6][playerid], false);
    
PlayerLogin[7][playerid] = CreatePlayerTextDraw(playerid, 270.000000, 84.222190, "Comunidade~n~_____vida_real");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[7][playerid], 0.400000, 1.600000);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[7][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[7][playerid], 41215);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[7][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[7][playerid], 1);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[7][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[7][playerid], 3);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[7][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[7][playerid], 0);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[7][playerid], false);
    
PlayerLogin[8][playerid] = CreatePlayerTextDraw(playerid, 269.000000, 183.777770, "Digite_aqui_seu_nome");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[8][playerid], 0.221500, 1.375999);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[8][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[8][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[8][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[8][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[8][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[8][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[8][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[8][playerid], 0);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[8][playerid], 370.000000, 10.000000);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[8][playerid], true);
    
PlayerLogin[9][playerid] = CreatePlayerTextDraw(playerid, 266.000000, 211.777801, "Digite_aqui_sua_senha");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[9][playerid], 0.221500, 1.375999);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[9][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[9][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[9][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[9][playerid], 0);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[9][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[9][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[9][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[9][playerid], 0);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[9][playerid], 372.000000, 10.000000);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[9][playerid], true);
    
PlayerLogin[10][playerid] = CreatePlayerTextDraw(playerid, 296.500000, 253.466735, "Entrar");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[10][playerid], 0.294500, 1.469333);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[10][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[10][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[10][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[10][playerid], 1);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[10][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[10][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[10][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[10][playerid], 0);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[10][playerid], 345.000000, 10.000000);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[10][playerid], true);
    
PlayerLogin[11][playerid] = CreatePlayerTextDraw(playerid, 357.800079, 292.644592, "Registrar");
    
PlayerTextDrawLetterSize(playerid, PlayerLogin[11][playerid], 0.172000, 1.413332);
    
PlayerTextDrawAlignment(playerid, PlayerLogin[11][playerid], 1);
    
PlayerTextDrawColor(playerid, PlayerLogin[11][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[11][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, PlayerLogin[11][playerid], 1);
    
PlayerTextDrawBackgroundColor(playerid, PlayerLogin[11][playerid], 255);
    
PlayerTextDrawFont(playerid, PlayerLogin[11][playerid], 2);
    
PlayerTextDrawSetProportional(playerid, PlayerLogin[11][playerid], 1);
    
PlayerTextDrawSetShadow(playerid, PlayerLogin[11][playerid], 0);
    
PlayerTextDrawTextSize(playerid, PlayerLogin[11][playerid], 400.000000, 9.000000);
    
PlayerTextDrawSetSelectable(playerid, PlayerLogin[11][playerid], true); 
Reply
#6

Talvez possa ser a definiзгo da variбvel, exemplo: new Senha (Isso causaria conflito) o correto seria new Senha[MAX_PLAYERS], cada player teria sua senha.
Reply
#7

Jб estб assim:

PHP код:
new pNome[MAX_PLAYERS];
new 
pSenha[MAX_PLAYERS]; 
Quando clica em entrar

PHP код:
    if(playertextid == PlayerLogin[10][playerid])  //entrar
    
{
        if(
pNome[playerid] <= 0)return SendClientMessage(playerid, C_ERRO, "| ERRO | Nome nгo digitado !");
        if(
pSenha[playerid] <= 0)return SendClientMessage(playerid, C_ERRO, "| ERRO | Senha nгo digitado !");
        new 
file[50];
        
format(file, sizeof(file), PASTA_CONTAS, pNome[playerid]);
        if(
DOF2_FileExists(file))
        {
            if(
strcmp(pSenha[playerid], DOF2_GetString(file, "Senha"), false) == 0)
            {
                return 
CarregarContas(playerid);
            } else {
                
SendClientMessage(playerid, C_ERRO, "| ERRO | Verifique se estб tudo correto!");
                return 
1;
            }
        } else {
            
SendClientMessage(playerid, C_ERRO, "| ERRO | Conta nгo cadastrada!");
        }
        return 
1;
    } 
Reply
#8

O erro estб aqui provavelmente, por que й armazenada em pNome e nгo em pNome[playerid]!

Seu colocar "pNome[playerid]", buga

PHP код:
if(dialogid == LOGIN_NOME)   //LOGIN
    
{
        if(
strlen(inputtext) >= 1)
        {
            if(
response)
            {                                            
                
strcat((pNome[playerid] =0, pNome), inputtext);//aqui
                
PlayerTextDrawSetString(playerid, PlayerLogin[8][playerid], pNome[playerid]);
            }
            if(!
response)
            {
            }
        }
        return 
1;
    } 
Ajuda alguem ?
Reply
#9

Quote:
Originally Posted by CALENZ021
Посмотреть сообщение
O erro estб aqui provavelmente, por que й armazenada em pNome e nгo em pNome[playerid]!

Seu colocar "pNome[playerid]", buga

PHP код:
if(dialogid == LOGIN_NOME)   //LOGIN
    
{
        if(
strlen(inputtext) >= 1)
        {
            if(
response)
            {                                            
                
strcat((pNome[playerid] =0, pNome), inputtext);//aqui
                
PlayerTextDrawSetString(playerid, PlayerLogin[8][playerid], pNome[playerid]);
            }
            if(!
response)
            {
            }
        }
        return 
1;
    } 
Ajuda alguem ?
Qual a funcionalidade deste cуdigo ? explique-se.
Reply
#10

Fazer Com que pNome receba "inputtext"
Reply


Forum Jump:


Users browsing this thread: