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



TextDraw Help - Desha1 - 31.12.2014

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]; 



Re: TextDraw Help - Desha1 - 31.12.2014

Guys?


Re: TextDraw Help - AndySedeyn - 31.12.2014

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);



Re: TextDraw Help - Desha1 - 31.12.2014

dude thx