[HELP]Create3DTextLabel
#1

hello friends I have a problem, I have this code that you aparese Create3DTextLabel when you moderator or admin assistant.

I put it in OnPlayerConnect

switch(PlayerInfo[playerid][Level])
{
case 1 .. 2:
{
EsAdmin[playerid] = Create3DTextLabel("** Ayudante **",0x0080FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(EsAdmin[playerid], playerid, 0.0, 0.0, 0.6);
}
case 3 .. 4:
{
EsAdmin[playerid] = Create3DTextLabel("** Moderador **",0xFF8000FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(EsAdmin[playerid], playerid, 0.0, 0.0, 0.6);
}
case 5 .. 8:
{
EsAdmin[playerid] = Create3DTextLabel("** Administrador **",0xFF0000FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(EsAdmin[playerid], playerid, 0.0, 0.0, 0.6);
}
}

but not seen, as I meet?
Reply
#2

All players can see 3D text, but player who has attached 3D Text can't see it. So you need more people to test that.
Reply
#3

but I invite a friend and he told me not appear sent me pictures and everything and is a omismo can not see it
Reply
#4

If I'm right, you missed one number on the end of Create3DTextLabel
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Reply
#5

CroM256, that thing you are saying is different from Attach3DTextLabel. The Create3DTextLabel places a 3D Text Label on a place, whereas Attach 3D Text Label does it on a player's body part. So, here is the correct one:
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#6

but it appears that all I need to q me aparesca admin
Reply
#7

I get 2 errors

C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(530) : error 017: undefined symbol "playerid"
C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(1853) : error 017: undefined symbol "UpdateDraw"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Line

530 - AdminLabel[playerid] = Create3DTextLabel("_",0xFFFFFFFF,30.0,40.0,50.0,40 .0,0);
1853 - UpdateDraw(playerid);
Reply
#8

C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(532) : error 001: expected token: ",", but found "."
C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(532) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(532) : warning 215: expression has no effect
C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(532) : warning 215: expression has no effect
C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(532) : error 001: expected token: ";", but found ")"
C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(532) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Line

532 - AdminLabel[playerid] = Create3DTextLabel("_",0xFFFFFFFF,30.0,40.0,50.0,40 .0,0);
Reply
#9

was reduced to 1 error but this error is ...

C:\Users\Usuario\Desktop\The walking dead Primera Temporada\gamemodes\Thewalkingdead.pwn(183 : error 017: undefined symbol "UpdateDraw"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Line:
UpdateDraw(playerid);
Reply
#10

OnPlayerSpawn add it in as you said so long and I do not get error
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)