TextDraw Help
#1

Hello Guys
i Have Problems Error
Quote:

D:\da\filterscripts\fuel.pwn(19) : error 032: array index out of bounds (variable "Textdraw2")
D:\da\filterscripts\fuel.pwn(20) : error 032: array index out of bounds (variable "Textdraw2")
D:\da\filterscripts\fuel.pwn(21) : error 032: array index out of bounds (variable "Textdraw2")
D:\da\filterscripts\fuel.pwn(22) : error 032: array index out of bounds (variable "Textdraw2")
D:\da\filterscripts\fuel.pwn(23) : error 035: argument type mismatch (argument 1)
D:\da\filterscripts\fuel.pwn(24) : error 032: array index out of bounds (variable "Textdraw2")
D:\da\filterscripts\fuel.pwn(25) : error 032: array index out of bounds (variable "Textdraw2")

all line
PHP код:
    Textdraw2[MAX_PLAYERS] = TextDrawCreate(120.000000434.000000"Fuel:");
    
TextDrawBackgroundColor(Textdraw2[MAX_PLAYERS], 255);
    
TextDrawFont(Textdraw2[MAX_PLAYERS], 1);
    
TextDrawLetterSize(Textdraw2[MAX_PLAYERS], 0.3600001.100000);
    
TextDrawColor(Textdraw2107731199);
    
TextDrawSetOutline(Textdraw2[MAX_PLAYERS], 1);
    
TextDrawSetProportional(Textdraw2[MAX_PLAYERS], 1); 
PHP код:
new Text:Textdraw2[MAX_PLAYERS]; 
Reply
#2

Guys?
Reply
#3

I think what you tried to do was:

pawn Код:
Textdraw2[playerid] = TextDrawCreate(120.000000, 434.000000, "Fuel:");
    TextDrawBackgroundColor(Textdraw2[playerid], 255);
    TextDrawFont(Textdraw2[playerid], 1);
    TextDrawLetterSize(Textdraw2[playerid], 0.360000, 1.100000);
    TextDrawColor(Textdraw2[playerid], 107731199);
    TextDrawSetOutline(Textdraw2[playerid], 1);
    TextDrawSetProportional(Textdraw2[playerid], 1);
Reply
#4

dude thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)