Not an array or too many subscripts
#1

Here's my Textdraw variable
PHP код:
new Text:zSign
Here's where I create the textdraw
PHP код:
zTextdraw(playerid)
{
    
zSign[playerid] = CreatePlayerTextDraw(playerid,493.00000073.000000"~r~z");//Error Line
    
PlayerTextDrawBackgroundColor(playerid,zSign[playerid], 255);
    
PlayerTextDrawFont(playerid,zSign[playerid], 0);
    
PlayerTextDrawLetterSize(playerid,zSign[playerid], 1.2600002.499999);
    
PlayerTextDrawColor(playerid,zSign[playerid], -1);
    
PlayerTextDrawSetOutline(playerid,zSign[playerid], 1);
    
PlayerTextDrawSetProportional(playerid,zSign[playerid], 1);
    
PlayerTextDrawSetSelectable(playerid,zSign[playerid], 0);

zTextdraw is called on OnPlayerConnect.
Reply
#2

Text:zSign[MAX_PLAYERS];
Reply
#3

Thanks. Never knew MAX_PLAYERS could be added in variable textdraws.

EDIT: Still have tag mismatch warnings, though
Reply
#4

PHP код:
PlayerText:zSign[MAX_PLAYERS]; 
You have created PlayerTextdraw and you need to assign it as PlayerText tag.
Reply
#5

Quote:
Originally Posted by vassilis
Посмотреть сообщение
PHP код:
PlayerText:zSign[MAX_PLAYERS]; 
You have created PlayerTextdraw and you need to assign it as PlayerText tag.
That fixed it. +rep to you both
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)