String Problem donґt shows Player Label
#1

Hello, I tried to put the name over the head and donґt works, this is my code:

pawn Код:
new Text3D:PlayerLabel[MAX_PLAYERS];
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string,sizeof(string),"%s",name;
    PlayerLabel[playerid] = Create3DTextLabel(string,RED,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(PlayerLabel[playerid], playerid, 0.0, 0.0, 0.7);
I tried also with this

pawn Код:
new Text3D:PlayerLabel[MAX_PLAYERS];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    PlayerLabel[playerid] = Create3DTextLabel(name,RED,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(PlayerLabel[playerid], playerid, 0.0, 0.0, 0.7);
but donґt works
Note: Another players canґt view my name over the head with this code.

Please help me
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)