03.05.2012, 20:16
Hello,i've created a textdraw to replace the old cash style with my own.This is the textdraw:
OnGameModeInit:
OnPlayerConnect:
But when i compile,i get this errors:
This is the error line:
What's wrong?
pawn Код:
new Text:Cash[MAX_PLAYERS];
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);
pawn Код:
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Cash);
}
}
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 |
pawn Код:
TextDrawFont([Cash[i], 3);