Textdraw is not showing up - 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: Textdraw is not showing up (
/showthread.php?tid=506617)
Textdraw is not showing up -
yellow - 13.04.2014
Hey, it's me again.
The DialogBox is showing up, but not the Questbox.
Code:
Код:
ocmd:story(playerid,params[])
{
#pragma unused params
switch(PlayerData[playerid][pLang])
{
case 0://german
{
ClearChat(playerid);
SCM(playerid,-1," Dein Leben auf "#SERVERNAME"beginnt mit diesem Moment..");
SCM(playerid,-1," 14 Juli, 05:18:15. ");
SCM(playerid,-1," **Dein Handy klingelt. Du gehst an das Telefon");
CreateDialogBox(playerid);
UpdateDialogBox(playerid,"~r~Hallo, wer ist da?~n~~g~Namen sind was fuer Freunde. Ich hab' gehoert, du suchst nach einem Job. Ich habe da was fuer dich~n~~r~\
Um was gehts?~n~~g~Wir besprechen das am besten unter 2 Augen..Komm zum alten Hafen.");
SCM(playerid,-1," Du hцrt ein Knacken am anderen Ende der Leitung");
SCM(playerid,-1," ** TUT TUT TUT **");
CreateQuestBox(playerid);
print("quesst");
UpdateQuestBox(playerid,"~y~Begib dich zu dem Hafen");//<- this is not showing up
PlayerPlaySound(playerid,1058,0,0,0);
}
case 1://english
{
ClearChat(playerid);
SCM(playerid,-1," Your new life is starting with this moment..");
SCM(playerid,-1," 7/1/2014, 05:18:15 PM");
SCM(playerid,-1," Your phone is ringing.");
CreateDialogBox(playerid);
UpdateDialogBox(playerid,"~r~Hello Who's there?~n~~g~Names are just for friend. I've noticed you need a job. I've got somethin for you~n~~r\
What are you talkin' about?~n~~g~I'm gonna tell you. We'll meet at the old harbour");
SCM(playerid,-1," ** The guy is pressing a key **");
SCM(playerid,-1," ** TUT TUT TUT **");
CreateQuestBox(playerid);
UpdateQuestBox(playerid,"~y~Go to the Harbour");//<- this is not showing up
PlayerPlaySound(playerid,1058,0,0,0);
}
}
return 1;
}
Код:
stock CreateQuestBox(playerid)
{
print("questttt");
Questbox[playerid] = CreatePlayerTextDraw(playerid,185.000000, 10.000000, "~n~~n~~n~");
PlayerTextDrawBackgroundColor(playerid,Questbox[playerid], 255);
PlayerTextDrawFont(playerid,Questbox[playerid], 1);
PlayerTextDrawLetterSize(playerid,Questbox[playerid], 0.500000, 1.90000);
PlayerTextDrawColor(playerid,Questbox[playerid], -1);
PlayerTextDrawSetOutline(playerid,Questbox[playerid], 0);
PlayerTextDrawSetProportional(playerid,Questbox[playerid], 1);
PlayerTextDrawSetShadow(playerid,Questbox[playerid], 1);
PlayerTextDrawUseBox(playerid,Questbox[playerid], 1);
PlayerTextDrawBoxColor(playerid,Questbox[playerid], 100);
PlayerTextDrawTextSize(playerid,Questbox[playerid], 483.000000, 0.000000);
return 1;
}
stock UpdateQuestBox(playerid,text[])
{
return PlayerTextDrawSetString(playerid,Questbox[playerid],text);
}
stock DestroyQuestBox(playerid)
{
return PlayerTextDrawDestroy(playerid,Questbox[playerid]);
}
stock ClearQuestBox(playerid)
{
return PlayerTextDrawSetString(playerid,Questbox[playerid],"~n~~n~~n~);
}
Re : Textdraw is not showing up -
S4t3K - 13.04.2014
TextDrawShowForPlayer + missing " on ClearQuestBox.
AW: Textdraw is not showing up -
yellow - 13.04.2014
Uhm. Yea. Thanks