SA-MP Forums Archive
AYUDA 3D LABELS POR JUGADOR.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: AYUDA 3D LABELS POR JUGADOR.. (/showthread.php?tid=427003)



AYUDA 3D LABELS POR JUGADOR.. - xDarkuzSx - 31.03.2013

Tema solucionado


Re: AYUDA 3D LABELS POR JUGADOR.. - Daniel-92 - 31.03.2013

sin el cуdigo no te podemos ayudar.


Respuesta: Re: AYUDA 3D LABELS POR JUGADOR.. - xDarkuzSx - 31.03.2013

Quote:
Originally Posted by Daniel-92
Посмотреть сообщение
sin el cуdigo no te podemos ayudar.
este es el codigo:

pawn Код:
Delete3DTextLabel(TextoP[playerid]);
TextoP[playerid] = Create3DTextLabel(inputtext, 0xfafa89ff, 30.0, 40.0, 50.0, 40.0, 0);// inputtext del dialog..
Attach3DTextLabelToPlayer(TextoP[playerid], playerid, 0.0, 0.0, 0.7);
y asi defini TextoP:

pawn Код:
new Text3D:TextoP[MAX_PLAYERS];



Re: AYUDA 3D LABELS POR JUGADOR.. - Daniel-92 - 31.03.2013

pawn Код:
new Text3D:TextoP[MAX_PLAYERS];
esa variable es global? o la definiste dentro del comando.

para actualizar el label mejor usa Update3DTextLabelText


Respuesta: Re: AYUDA 3D LABELS POR JUGADOR.. - xDarkuzSx - 31.03.2013

Quote:
Originally Posted by Daniel-92
Посмотреть сообщение
pawn Код:
new Text3D:TextoP[MAX_PLAYERS];
esa variable es global? o la definiste dentro del comando.
creo que es global esta hazta arriba del gamemode donde tengo los news


Re: AYUDA 3D LABELS POR JUGADOR.. - Daniel-92 - 31.03.2013

Probб de esta forma, puede ser que se confundan las ids.
pawn Код:
//En OnPlayerConnect
TextoP[playerid] = Text3D:-1;


//En el dialog response-----------------------------------------
if(TextoP[playerid] == Text3D:-1) {
    TextoP[playerid] = Create3DTextLabel(inputtext, 0xfafa89ff, 30.0, 40.0, 50.0, 40.0, 0);// inputtext del dialog..
    Attach3DTextLabelToPlayer(TextoP[playerid], playerid, 0.0, 0.0, 0.7);
}
else {
    Update3DTextLabelText(TextoP[playerid], 0xfafa89ff, inputtext);
}

//En OnPlayerDisconnect
if(TextoP[playerid] != Text3D:-1) Delete3DTextLabel(TextoP[playerid]);



Respuesta: AYUDA 3D LABELS POR JUGADOR.. - xDarkuzSx - 31.03.2013

mm bueno, lo solucione quitando el delete3d de mi onplayerconnect....... Gracias igual no pobre tu codigo pero parece que funciona..