Textdraw Is not working! (REALLY NEED HELP)
#1

I don't know what's the problem in my script. All textdraws aren't working.

- I have tried uploaded latest all plugins.
- I have tried my old backup script. (still not working in old script which is 10 days ago)
- Compile is fine. I have checked on server_logs, can't find anything.
- I am using mysql latest version.

What could be problem?

Well, I would understand if it doesn't work only updated script but i have tried to run my old script and it's not working too in old script. It doesn't show me textdraw. All textdraws are not showing.

I'm using textdraw like this in my script.

PHP код:
new Text:example 
Have any idea guys? Thanks!
Reply
#2

Hello!

Where are you creating the textdraws? Can we show this?

Where are you showing the textdraws?


- Mencent
Reply
#3

Did you put PlayerTextDrawShow to show the textdraw for the player ? or you simply used CreatePlayerTextDraw ?
Reply
#4

I don't think my script is a problem because it was working fine last night and at morning it doesn't showing textdraw.

And also i have tried to run my old backup which is 10 days ago or more but still not working there too.

So, I don't think script is a problem. I thought it was plugins but then i have updated my plugins into latest but still have same problem. Lemme download a textdraw script from samp forum and see .

EDITED: I'm using like this

PHP код:
on top of script.
// rules box
new Text:RULEBOX;
new 
Text:rule1;
new 
Text:rule2;
OnGameMode
RULEBOX 
TextDrawCreate(15.000000135.000000"usebox");
    
TextDrawLetterSize(RULEBOX0.00000013.738883);
    
TextDrawTextSize(RULEBOX220.2679440.000000);
    
TextDrawAlignment(RULEBOX1);
    
TextDrawColor(RULEBOX0);
    
TextDrawUseBox(RULEBOXtrue);
    
TextDrawBoxColor(RULEBOX102);
    
TextDrawSetShadow(RULEBOX0);
    
TextDrawSetOutline(RULEBOX0);
    
TextDrawFont(RULEBOX0);
    
rule1 TextDrawCreate(18.000000136.000000"~g~Server Rules~n~~n~~y~1. ~w~Respect all players and admins.~n~~y~2.~w~ Listen to and obey admins.~n~~y~3.~w~ Don't kill other players without a good reason~n~~y~4.~w~ Do not use cheats or any mods.~n~~y~5.~w~ Do not advertise anything.");
    
TextDrawAlignment(rule11);
    
TextDrawLetterSize(rule10.2099990.800000);
    
TextDrawColor(rule10xffff00ff);
    
TextDrawSetOutline(rule11);
    
TextDrawSetProportional(rule12);
    
TextDrawSetShadow(rule12);
    
rule2 TextDrawCreate(18.000000186.500000"~y~6.~w~ Don't spam~n~~y~7.~w~ Do not abuse any bug, if you found a bug~n~report it on forum.~n~~y~8.~w~ Cops and robbers cannot team up~n~~y~9.~w~ Do not quit your game to avoid anything.~n~~y~10.~w~ Medics may not physically harm other players ~n~in any way.~n~~y~11.~w~ Use common sense at all times.");
    
TextDrawAlignment(rule21);
    
TextDrawLetterSize(rule20.2099990.800000);
    
TextDrawColor(rule20xffff00ff);
    
TextDrawSetOutline(rule21);
    
TextDrawSetProportional(rule22);
    
TextDrawSetShadow(rule22); 
And this is cmd

PHP код:
CMD:rules(playeridparams[])
{
    
HideDraw(playerid);
    
TextDrawShowForPlayer(playeridRULEBOX);
    
TextDrawShowForPlayer(playeridrule1);
    
TextDrawShowForPlayer(playeridrule2);
    return 
true;

Reply
#5

What are you using the HideDraw for ?
Reply
#6

I'm using this for hiding textdraw. Like If you have opened a textdraw already then you type /cmds so it hides old textdraw and show you only cmds textdraw.
Reply
#7

Well, others script are working. Its only my script doesn't showing textdraw suddenly. Anyone help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)