3DTextLabel not appearing. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3DTextLabel not appearing. (
/showthread.php?tid=480911)
3DTextLabel not appearing. -
Beckett - 13.12.2013
------
Re: 3DTextLabel not appearing. -
TahaAsif12 - 13.12.2013
Try putting it under OnGameModeInit?
Re: 3DTextLabel not appearing. -
Beckett - 13.12.2013
Say what? read the code before posting please.
Re: 3DTextLabel not appearing. -
xVIP3Rx - 13.12.2013
Can you post where you declare prisontext And PlayerInfo[playerid][pPrison] ?
Re: 3DTextLabel not appearing. -
Beckett - 13.12.2013
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.
Re: 3DTextLabel not appearing. -
xVIP3Rx - 13.12.2013
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 )
Re: 3DTextLabel not appearing. -
Beckett - 13.12.2013
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.
Re: 3DTextLabel not appearing. -
Wizzy951 - 13.12.2013
Maybe the label's length size is not enough.
Re: 3DTextLabel not appearing. -
Beckett - 14.12.2013
I don't think so.
Re: 3DTextLabel not appearing. -
Dokins - 14.12.2013
What is prisontext and player info prison?
As in what is their definition?
Sorry, on phone.