textdraw problem
#1

Hello,i've created a textdraw to replace the old cash style with my own.This is the textdraw:

pawn Код:
new Text:Cash[MAX_PLAYERS];
OnGameModeInit:

pawn Код:
Cash[i] = TextDrawCreate(498.000000, 80.000000, "Cash: $");
    TextDrawBackgroundColor(Cash[i], 1711276202);
    TextDrawFont([Cash[i], 3);
    TextDrawLetterSize(Cash[i], 0.329998, 1.799999);
    TextDrawColor(Cash[i], -1);
    TextDrawSetOutline(Cash[i], 1);
    TextDrawSetProportional(Cash[i], 1);
    TextDrawUseBox(Cash[i], 1);
    TextDrawBoxColor(Cash[i], 255);
    TextDrawTextSize(Cash[i], 606.000000, 4.000000);
OnPlayerConnect:

pawn Код:
for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, Cash);
        }
    }
But when i compile,i get this errors:

Quote:

(2300) : error 029: invalid expression, assumed zero
(2300) : warning 215: expression has no effect
(2300) : warning 215: expression has no effect
(2300) : error 001: expected token: ";", but found ")"
(2300) : error 029: invalid expression, assumed zero
(2300): fatal error 107: too many error messages on one line

This is the error line:

pawn Код:
TextDrawFont([Cash[i], 3);
What's wrong?
Reply


Messages In This Thread
textdraw problem - by Face9000 - 03.05.2012, 20:16
Re: textdraw problem - by 2KY - 03.05.2012, 20:19
Re: textdraw problem - by Face9000 - 03.05.2012, 20:30
Re: textdraw problem - by 2KY - 03.05.2012, 20:31
Re: textdraw problem - by Face9000 - 03.05.2012, 20:45
Re: textdraw problem - by mickos - 03.05.2012, 20:49

Forum Jump:


Users browsing this thread: 1 Guest(s)