Help mee please
#1

Hello a little problem here.

PHP код:
    TextdrawMenu3 = TextDrawCreate(441.599884, 32.106666, "~y~ZOMBIE APOCALYPSE ~n~~w~MAP:%s ~n~~r~INFO: ~w~RUNNING",Map[MapName]);// the line
    
TextDrawLetterSize(TextdrawMenu3, 0.312399, 1.764266);
    
TextDrawAlignment(TextdrawMenu3, 2);
    
TextDrawColor(TextdrawMenu3, -1);
    
TextDrawSetShadow(TextdrawMenu3, 0);
    
TextDrawSetOutline(TextdrawMenu3, 1);
    
TextDrawBackgroundColor(TextdrawMenu3, 51);
    
TextDrawFont(TextdrawMenu3, 2);
    
TextDrawSetProportional(TextdrawMenu3, 1); 
Errorrs

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

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);
Reply
#3

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

AnyOne?
Reply
#5

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

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


Forum Jump:


Users browsing this thread: