3DTextLabel not appearing.
#1

------
Reply
#2

Try putting it under OnGameModeInit?
Reply
#3

Say what? read the code before posting please.
Reply
#4

Can you post where you declare prisontext And PlayerInfo[playerid][pPrison] ?
Reply
#5

pawn Код:
case DIALOG_REGISTER:
        {
            if(IsPlayerNPC(playerid)) return 1;

            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Account Registeration","{4682B4}You have entered an invalid password.\n{B8D6D4}Type a password below to register a new account.","Register","Quit");
                new INI:File = INI_Open(UserPath(playerid));
                new IP[22];
                new prisonID = random(100);
                GetPlayerIp(playerid, IP, sizeof(IP));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"pPrison",prisonID);
                INI_Close(File);
                PlayerInfo[playerid][pLogged] = 1;
            }
        }
When a player registers a random integer will be assigned as his prison ID then on Spawn it'll be attached to him as a text label.
Reply
#6

So that means "PlayerInfo[playerid][pPrison]" is integer ? You can't use an integer as a textdraw text..
Also
Quote:

Can you post where you declare prisontext And PlayerInfo[playerid][pPrison] ?

( E.g new prisontext / enum pPrison )
Reply
#7

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
So that means "PlayerInfo[playerid][pPrison]" is integer ? You can't use an integer as a textdraw text..
Also
( E.g new prisontext / enum pPrison )
I guess you can also the prisontext is an assigned variable and pPrison is in the enum of the player's Data which saves.
Reply
#8

Maybe the label's length size is not enough.
Reply
#9

I don't think so.
Reply
#10

What is prisontext and player info prison?

As in what is their definition?

Sorry, on phone.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)