[SOLVED] Textdraw when spawn for 10 seconds but only ID 0 can see the textd..
#1

Hello I've a Textdraw where wrotes "Created by RyDeR" for only 10 seconds when spawn. But there is a problem: ' Only ID 0 Can see the textdraw when he spawn :S what's the problem anybody know that?



This is the textdraw maybe you can make an example when spawn to show this for 10 seconds.
Код:
	Textdraw3 = TextDrawCreate(431.000000,348.000000,"Created By");
	Textdraw4 = TextDrawCreate(450.000000,381.000000,"[WsR]RyDeR");
	TextDrawAlignment(Textdraw3,0);
	TextDrawAlignment(Textdraw4,0);
	TextDrawBackgroundColor(Textdraw3,0x000000ff);
	TextDrawBackgroundColor(Textdraw4,0x000000ff);
	TextDrawFont(Textdraw3,1);
	TextDrawLetterSize(Textdraw3,0.799999,1.400000);
	TextDrawFont(Textdraw4,3);
	TextDrawLetterSize(Textdraw4,0.499999,1.100000);
	TextDrawColor(Textdraw3,0xffffffff);
	TextDrawColor(Textdraw4,0xffffffff);
	TextDrawSetProportional(Textdraw3,1);
	TextDrawSetProportional(Textdraw4,1);
	TextDrawSetShadow(Textdraw3,2);
	TextDrawSetShadow(Textdraw4,2);
Reply
#2

How/Where do you show these textdraws to a player? Can you show that part of the code?
Reply
#3

Show the code where you have written something like this
pawn Код:
TextDrawShowForAll(....
or
pawn Код:
TextDrawShowForPlayer(........
Thank You
-Abhinav
Reply
#4

Quote:
Originally Posted by ۞●•λвнiиаv•●۞
Show the code where you have written something like this
pawn Код:
TextDrawShowForAll(....
or
pawn Код:
TextDrawShowForPlayer(........
Thank You
-Abhinav
I've wrote in OnPlayerSpawn:
Код:
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
SetTimer("DeleteText",10000,0);
Код:
public DeleteText()
{
TextDrawHideForPlayer(playerid,Textdraw3);
TextDrawHideForPlayer(playerid,Textdraw4);
}
But only ID 0 can see the textdraw when he spawns, ID 1, ID 2, ID 3 ... ID 200 can't see the Textdraw when they/he spawn.
Reply
#5

Then You are doing it correctly....I cant see any problem in that, but If you want , I can send you such a TextDraw that I use in my server.

Thank You
-Abhinav
Reply
#6

Quote:
Originally Posted by [WsR
RyDeR ]
Quote:
Originally Posted by ۞●•λвнiиаv•●۞
Show the code where you have written something like this
pawn Код:
TextDrawShowForAll(....
or
pawn Код:
TextDrawShowForPlayer(........
Thank You
-Abhinav
I've wrote in OnPlayerSpawn:
Код:
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
SetTimer("DeleteText",10000,0);
Код:
public DeleteText()
{
TextDrawHideForPlayer(playerid,Textdraw3);
TextDrawHideForPlayer(playerid,Textdraw4);
}
But only ID 0 can see the textdraw when he spawns, ID 1, ID 2, ID 3 ... ID 200 can't see the Textdraw when they/he spawn.
Код:
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
SetTimerEx("DeleteText",10000,0,"d",playerid);
Код:
public DeleteText(playerid)
{
TextDrawHideForPlayer(playerid,Textdraw3);
TextDrawHideForPlayer(playerid,Textdraw4);
}
Let me know if this sloved your problem ;]

@
Quote:
Originally Posted by ۞●•λвнiиаv•●۞
Then You are doing it correctly....I cant see any problem in that, but If you want , I can send you such a TextDraw that I use in my server.

Thank You
-Abhinav
Go learn about timers... -,-
Reply
#7

Quote:
Originally Posted by gamer_Z
@
Quote:
Originally Posted by ۞●•λвнiиаv•●۞
Then You are doing it correctly....I cant see any problem in that, but If you want , I can send you such a TextDraw that I use in my server.

Thank You
-Abhinav
Go learn about timers... -,-
Lol .... you trying to teach me about timers .. :P ...I do the same textDraw stamp thing in my own server... Also if you say of Timer....I am your father in using Timer......but i dont mostly use it cos they make things laggy.

COMPLETELY NOOB LOL


Reply
#8

Quote:
Originally Posted by ۞●•λвнiиаv•●۞
Quote:
Originally Posted by gamer_Z
@
Quote:
Originally Posted by ۞●•λвнiиаv•●۞
Then You are doing it correctly....I cant see any problem in that, but If you want , I can send you such a TextDraw that I use in my server.

Thank You
-Abhinav
Go learn about timers... -,-
Lol .... you trying to teach me about timers .. :P ...I do the same textDraw stamp thing in my own server... Also if you say of Timer....I am your father in using Timer......but i dont mostly use it cos they make things laggy.

COMPLETELY NOOB LOL


errr.... gamer_Z was right.

[WsR]RyDeR's code shouldn't even compile...
Reply
#9

I have already PMed the working code to him. AND IT IS WITHOUT ANY SHITTY TIMER

EDIT: I haven't posted the code here beacuse I wont like it if anyone passes such comment on my post.


Reply
#10

@ Gamer_Z Thank you Problem solved..

@ And ۞●•λвнiиаv•●۞ really thank you for sending me a nice Textdraw and your information

SOLVED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)