[HELP] Textdraw above head
#8

Quote:
Originally Posted by joeri55
Посмотреть сообщение
I tried to add the phonenumber that I'm using as a prison number but I ended up with this warning;
C:\Users\mma\Desktop\Los Santos Prison Roleplay\gamemodes\lspr.pwn(9709) : warning 213: tag mismatch

This is the function;

Код:
        new Text3D:PrisonNum[MAX_PLAYERS];
    PrisonNum[playerid] = Create3DTextLabel("Prison Number %d",Player[playerid][PhoneN],0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(PrisonNum[playerid],playerid,0.0, 0.0, 0.7);
Pawn doesn't work like that, you need to format a string first
pawn Код:
new
        Text3D:PrisonNum[MAX_PLAYERS];
        string[32];
    format(string, sizoef(string), "Prison number: %d", Player[playerid][PhoneN]);
    PrisonNum[playerid] = Create3DTextLabel(string, 0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(PrisonNum[playerid], playerid, 0.0, 0.0, 0.7);
Reply


Messages In This Thread
[HELP] Textdraw above head - by joeri55 - 06.01.2011, 11:16
Re: [HELP] Textdraw above head - by veyron - 06.01.2011, 11:19
Re: [HELP] Textdraw above head - by _rAped - 06.01.2011, 11:20
Re: [HELP] Textdraw above head - by HyperZ - 06.01.2011, 11:20
Re: [HELP] Textdraw above head - by joeri55 - 06.01.2011, 11:36
Re: [HELP] Textdraw above head - by HyperZ - 06.01.2011, 11:42
Re: [HELP] Textdraw above head - by joeri55 - 06.01.2011, 11:52
Re: [HELP] Textdraw above head - by _rAped - 06.01.2011, 11:54
Re: [HELP] Textdraw above head - by joeri55 - 06.01.2011, 12:00
Re: [HELP] Textdraw above head - by _rAped - 06.01.2011, 12:01

Forum Jump:


Users browsing this thread: 2 Guest(s)