SA-MP Forums Archive
Help mee please - 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: Help mee please (/showthread.php?tid=531924)



Help mee please - arlindi - 15.08.2014

Hello a little problem here.

PHP код:
    TextdrawMenu3 TextDrawCreate(441.59988432.106666"~y~ZOMBIE APOCALYPSE ~n~~w~MAP:%s ~n~~r~INFO: ~w~RUNNING",Map[MapName]);// the line
    
TextDrawLetterSize(TextdrawMenu30.3123991.764266);
    
TextDrawAlignment(TextdrawMenu32);
    
TextDrawColor(TextdrawMenu3, -1);
    
TextDrawSetShadow(TextdrawMenu30);
    
TextDrawSetOutline(TextdrawMenu31);
    
TextDrawBackgroundColor(TextdrawMenu351);
    
TextDrawFont(TextdrawMenu32);
    
TextDrawSetProportional(TextdrawMenu31); 
Errorrs

PHP код:
C:\Users\Arlindi\Desktop\fsdf Copy Copy\gamemodes\zma4.pwn(7578) : warning 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Warning




Re: Help mee please - Faisal_khan - 15.08.2014

Use format()
pawn Код:
new string[128];
format(string, sizeof(string), "~y~ZOMBIE APOCALYPSE ~n~~w~MAP:%s ~n~~r~INFO: ~w~RUNNING", Map[MapName]);
TextDrawCreate(441.599884, 32.106666, string);



Re: Help mee please - arlindi - 15.08.2014

When i use this my textdraw hiddened when i remove this i can look this textdraw.


Re: Help mee please - arlindi - 15.08.2014

AnyOne?


Re: Help mee please - ThePhenix - 15.08.2014

Make sure you use TextDrawShowForPlayer to display that textdraw and remember you have this to format a textdraw:

https://sampwiki.blast.hk/wiki/TextDrawSetString